use open instead of file

This commit is contained in:
Daniel Neuhäuser
2010-05-24 17:35:43 +02:00
parent a83c48ec8a
commit f8b12a45da

View File

@@ -516,7 +516,7 @@ class path(_base):
def open(self, mode='r'):
""" Open this file. Return a file object. """
return file(self, mode)
return open(self, mode)
def bytes(self):
""" Open this file, read all bytes, return them as a string. """