python-modernize automated changes: misc. minor stuff
This commit is contained in:
parent
1b753cb1b1
commit
cfbfff2d26
2 changed files with 3 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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…
Add table
Add a link
Reference in a new issue