Update helper scripts to Python 3

This commit is contained in:
Jeffrey S. Smith 2013-09-06 20:40:48 -05:00
parent 880a548eb8
commit 74e5bcf500
3 changed files with 8 additions and 8 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
@ -49,7 +49,7 @@ except ImportError:
IS_WIN = sys.platform.startswith('win')
VERS = {
'Python': '2.6',
'Python': '3.0',
'PyQt4': '4.6',
'Qt4': '4.6',
'sqlalchemy': '0.5',
@ -76,6 +76,7 @@ MODULES = [
'PyQt4.QtWebKit',
'PyQt4.phonon',
'sqlalchemy',
'alembic',
'sqlite3',
'lxml',
'chardet',
@ -85,7 +86,6 @@ MODULES = [
'cherrypy',
'uno',
'icu',
'bs4',
]

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
@ -102,7 +102,7 @@ class CommandStack(object):
def __iter__(self):
return self
def next(self):
def __next__(self):
if self.current_index == len(self.data):
raise StopIteration
else:
@ -145,9 +145,9 @@ def print_quiet(text, linefeed=True):
global quiet_mode
if not quiet_mode:
if linefeed:
print text
print (text)
else:
print text,
print (text, end=' ')
def print_verbose(text):
"""

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4