##// END OF EJS Templates
Remove useless variable assignments in util.opener....
Thomas Arendsen Hein -
r4668:e241598e default
parent child Browse files
Show More
@@ -1152,9 +1152,6 b' def opener(base, audit=True):'
1152 1152 this function is used to hide the details of COW semantics and
1153 1153 remote file access from higher level code.
1154 1154 """
1155 p = base
1156 audit_p = audit
1157
1158 1155 def mktempcopy(name, emptyok=False):
1159 1156 d, fn = os.path.split(name)
1160 1157 fd, temp = tempfile.mkstemp(prefix='.%s-' % fn, dir=d)
@@ -1209,9 +1206,9 b' def opener(base, audit=True):'
1209 1206 posixfile.close(self)
1210 1207
1211 1208 def o(path, mode="r", text=False, atomictemp=False):
1212 if audit_p:
1209 if audit:
1213 1210 audit_path(path)
1214 f = os.path.join(p, path)
1211 f = os.path.join(base, path)
1215 1212
1216 1213 if not text:
1217 1214 mode += "b" # for that other OS
General Comments 0
You need to be logged in to leave comments. Login now