diff options
| author | Brett Cannon <bcannon@gmail.com> | 2007-05-25 20:17:15 (GMT) |
|---|---|---|
| committer | Brett Cannon <bcannon@gmail.com> | 2007-05-25 20:17:15 (GMT) |
| commit | 6cef076ba5edbfa42239924951d8acbb087b3b19 (patch) | |
| tree | a7b4897477edb519e2c154d5e4c9e0535dff9263 /Lib/test/test_zipfile.py | |
| parent | cf99b65932a4bfc41dc132afbd5d0b804634429d (diff) | |
| download | cpython-6cef076ba5edbfa42239924951d8acbb087b3b19.zip cpython-6cef076ba5edbfa42239924951d8acbb087b3b19.tar.gz cpython-6cef076ba5edbfa42239924951d8acbb087b3b19.tar.bz2 | |
Remove direct call's to file's constructor and replace them with calls to
open() as ths is considered best practice.
Diffstat (limited to 'Lib/test/test_zipfile.py')
| -rw-r--r-- | Lib/test/test_zipfile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_zipfile.py b/Lib/test/test_zipfile.py index ec519f6..49602ff 100644 --- a/Lib/test/test_zipfile.py +++ b/Lib/test/test_zipfile.py @@ -712,7 +712,7 @@ class UniversalNewlineTests(unittest.TestCase): for n, s in enumerate(self.seps): self.arcdata[s] = s.join(self.line_gen) + s self.arcfiles[s] = '%s-%d' % (TESTFN, n) - file(self.arcfiles[s], "wb").write(self.arcdata[s]) + open(self.arcfiles[s], "wb").write(self.arcdata[s]) def makeTestArchive(self, f, compression): # Create the ZIP archive |
