Browse Source

python-modernize automated changes: misc. minor stuff

pull/735/head
Thomas Waldmann 12 years ago
parent
commit
cfbfff2d26
  1. 3
      flask/testsuite/__init__.py
  2. 2
      flask/testsuite/config.py

3
flask/testsuite/__init__.py

@ -10,6 +10,7 @@
:license: BSD, see LICENSE for more details.
"""
from __future__ import print_function
from __future__ import with_statement
import os
@ -221,4 +222,4 @@ def main():
try:
unittest.main(testLoader=BetterLoader(), defaultTest='suite')
except Exception, e:
print 'Error: %s' % e
print('Error: %s' % e)

2
flask/testsuite/config.py

@ -113,7 +113,7 @@ class LimitedLoaderMockWrapper(object):
def __getattr__(self, name):
if name in ('archive', 'get_filename'):
msg = 'Mocking a loader which does not have `%s.`' % name
raise AttributeError, msg
raise AttributeError(msg)
return getattr(self.loader, name)

Loading…
Cancel
Save