summaryrefslogtreecommitdiffstats
path: root/Lib/posixfile.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/posixfile.py')
-rw-r--r--Lib/posixfile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/posixfile.py b/Lib/posixfile.py
index e2eb024..705fe77 100644
--- a/Lib/posixfile.py
+++ b/Lib/posixfile.py
@@ -83,7 +83,7 @@ class _posixfile_:
def fileopen(self, file):
import types
- if `type(file)` != "<type 'file'>":
+ if repr(type(file)) != "<type 'file'>":
raise TypeError, 'posixfile.fileopen() arg must be file object'
self._file_ = file
# Copy basic file methods