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