Skip to content

Commit

Permalink
Merge "Python 3: use "open" instead of "file""
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Sep 28, 2015
2 parents 820a43d + c6db7dc commit e08cf23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neutron/tests/functional/agent/linux/test_async_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def setUp(self):
super(AsyncProcessTestFramework, self).setUp()
self.test_file_path = self.get_temp_file_path('test_async_process.tmp')
self.data = [str(x) for x in range(4)]
with file(self.test_file_path, 'w') as f:
with open(self.test_file_path, 'w') as f:
f.writelines('%s\n' % item for item in self.data)

def _check_stdout(self, proc):
Expand Down

0 comments on commit e08cf23

Please sign in to comment.