python-modernize -f lib2to3.fixes.file . -w

This commit is contained in:
Tomas Kopecek 2017-10-31 16:04:41 +01:00
parent d6a5cdf987
commit 379ec8ae63
10 changed files with 34 additions and 34 deletions

View file

@ -36,7 +36,7 @@ class TestGetUploadPath(unittest.TestCase):
fullpath = '{0}/{1}'.format(work.return_value, reldir)
os.makedirs(fullpath)
with file('{0}/.user'.format(fullpath), 'wb') as f:
with open('{0}/.user'.format(fullpath), 'wb') as f:
f.write('1')
with self.assertRaises(GenericError):