remove so-far superflous _getcode and pickle from builtins, some streamlining

--HG--
branch : trunk
This commit is contained in:
holger krekel
2009-09-04 16:32:49 +02:00
parent 99af33b26d
commit 45b98d4915
7 changed files with 11 additions and 23 deletions

View File

@@ -136,14 +136,15 @@ newline will be removed from the end of each line. """
""" (deprecated) return object unpickled from self.read() """
f = self.open('rb')
try:
return py.error.checked_call(py.builtin.pickle.load, f)
return py.error.checked_call(py.std.pickle.load, f)
finally:
f.close()
def move(self, target):
""" move this path to target. """
if target.relto(self):
raise py.error.EINVAL(target, "cannot move path into a subdirectory of itself")
raise py.error.EINVAL(target,
"cannot move path into a subdirectory of itself")
try:
self.rename(target)
except py.error.EXDEV: # invalid cross-device link