Skip to content

Commit 46df999

Browse files
committed
Merge branch 'revamp' of github.com:kivy/python-for-android into revamp
2 parents d4c2741 + 35284e6 commit 46df999

File tree

8 files changed

+11
-10
lines changed

8 files changed

+11
-10
lines changed

pythonforandroid/bootstraps/pygame/build/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def select(fn):
183183
tf = tarfile.open(tfn, 'w:gz', format=tarfile.USTAR_FORMAT)
184184
dirs = []
185185
for fn, afn in files:
186-
print '%s: %s' % (tfn, fn)
186+
print('%s: %s' % (tfn, fn))
187187
dn = dirname(afn)
188188
if dn not in dirs:
189189
# create every dirs first if not exist yet

pythonforandroid/bootstraps/pygame/build/buildlib/jinja2.egg/jinja2/compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
}
3131

3232
try:
33-
exec '(0 if 0 else 0)'
33+
exec('(0 if 0 else 0)')
3434
except SyntaxError:
3535
have_condexpr = False
3636
else:

pythonforandroid/bootstraps/pygame/build/buildlib/jinja2.egg/jinja2/debug.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
# how does the raise helper look like?
2020
try:
21-
exec "raise TypeError, 'foo'"
21+
exec("raise TypeError, 'foo'")
2222
except SyntaxError:
2323
raise_helper = 'raise __jinja_exception__[1]'
2424
except TypeError:

pythonforandroid/bootstraps/pygame/build/buildlib/jinja2.egg/jinja2/environment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ def compile_templates(self, target, extensions=None, filter_func=None,
549549
def write_file(filename, data, mode):
550550
if zip:
551551
info = ZipInfo(filename)
552-
info.external_attr = 0755 << 16L
552+
info.external_attr = 0o755 << 16L
553553
zip_file.writestr(info, data)
554554
else:
555555
f = open(os.path.join(target, filename), mode)

pythonforandroid/bootstraps/pygame/build/buildlib/jinja2.egg/jinja2/ext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ def babel_extract(fileobj, keywords, comment_tags, options):
536536
try:
537537
node = environment.parse(source)
538538
tokens = list(environment.lex(environment.preprocess(source)))
539-
except TemplateSyntaxError, e:
539+
except TemplateSyntaxError as e:
540540
# skip templates with syntax errors
541541
return
542542

pythonforandroid/bootstraps/pygame/build/buildlib/jinja2.egg/jinja2/filters.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -615,8 +615,9 @@ class _GroupTuple(tuple):
615615
grouper = property(itemgetter(0))
616616
list = property(itemgetter(1))
617617

618-
def __new__(cls, (key, value)):
619-
return tuple.__new__(cls, (key, list(value)))
618+
#def __new__(cls, (key, value)):
619+
def __new__(cls, kv):
620+
return tuple.__new__(cls, (kv[0], list(kv[1])))
620621

621622

622623
def do_list(value):

pythonforandroid/bootstraps/pygame/build/buildlib/jinja2.egg/jinja2/lexer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ def wrap(self, stream, name=None, filename=None):
525525
value = self._normalize_newlines(value[1:-1]) \
526526
.encode('ascii', 'backslashreplace') \
527527
.decode('unicode-escape')
528-
except Exception, e:
528+
except Exception as e:
529529
msg = str(e).split(':')[-1].strip()
530530
raise TemplateSyntaxError(msg, lineno, name, filename)
531531
# if we can express it as bytestring (ascii only)

pythonforandroid/bootstraps/pygame/build/buildlib/jinja2.egg/jinja2/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def _test_gen_bug():
4848
raise TypeError(_test_gen_bug)
4949
yield None
5050
_concat(_test_gen_bug())
51-
except TypeError, _error:
51+
except TypeError as _error:
5252
if not _error.args or _error.args[0] is not _test_gen_bug:
5353
def concat(gen):
5454
try:
@@ -370,7 +370,7 @@ class Markup(unicode):
370370
>>> class Foo(object):
371371
... def __html__(self):
372372
... return '<a href="#">foo</a>'
373-
...
373+
...
374374
>>> Markup(Foo())
375375
Markup(u'<a href="#">foo</a>')
376376

0 commit comments

Comments
 (0)