Home | History | Annotate | Download | only in python2.7

Lines Matching refs:open

152             with open(filename, "rb") as fp:
503 Is returned by ZipFile.open().
706 """ Class with methods to open, read, write, close, list zip files.
723 """Open the ZIP file with mode read "r", write "w" or append "a"."""
752 self.fp = open(file, modeDict[mode])
756 self.fp = open(file, modeDict[mode])
894 with self.open(zinfo.filename, "r") as f:
931 return self.open(name, "r", pwd).read()
933 def open(self, name, mode="r", pwd=None):
936 raise RuntimeError, 'open() requires mode "r", "U", or "rU"'
941 # Only open a new file for instances where we were not
947 zef_file = open(self.filename, 'rb')
1078 with self.open(member, pwd=pwd) as source, \
1149 with open(filename, "rb") as fp:
1501 with open(tgt, 'wb') as fp: