diff options
| author | Alex Martelli <aleaxit@gmail.com> | 2006-08-24 02:58:11 +0000 |
|---|---|---|
| committer | Alex Martelli <aleaxit@gmail.com> | 2006-08-24 02:58:11 +0000 |
| commit | 01c77c66289f8e9c8d15b8da623fae4014ec2edb (patch) | |
| tree | f719c69719857899da42d2af8ceb48824cf4fe0d /Lib/test/test_inspect.py | |
| parent | b5d47efe92fd12cde1de6a473108ef48238a43cc (diff) | |
| download | cpython-git-01c77c66289f8e9c8d15b8da623fae4014ec2edb.tar.gz | |
Anna Ravenscroft identified many occurrences of "file" used to open a file
in the stdlib and changed each of them to use "open" instead. At this
time there are no other known occurrences that can be safely changed (in
Lib and all subdirectories thereof).
Diffstat (limited to 'Lib/test/test_inspect.py')
| -rw-r--r-- | Lib/test/test_inspect.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_inspect.py b/Lib/test/test_inspect.py index e9f9ef1ebb..1030f972e9 100644 --- a/Lib/test/test_inspect.py +++ b/Lib/test/test_inspect.py @@ -130,7 +130,7 @@ class GetSourceBase(unittest.TestCase): def __init__(self, *args, **kwargs): unittest.TestCase.__init__(self, *args, **kwargs) - self.source = file(inspect.getsourcefile(self.fodderFile)).read() + self.source = open(inspect.getsourcefile(self.fodderFile)).read() def sourcerange(self, top, bottom): lines = self.source.split("\n") |
