[pypy-commit] pypy py3.3: oops, fix the merge

amauryfa noreply at buildbot.pypy.org
Sun Jun 28 10:26:48 CEST 2015


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: py3.3
Changeset: r78334:fc25d108573c
Date: 2015-06-25 08:42 +0200
http://bitbucket.org/pypy/pypy/changeset/fc25d108573c/

Log:	oops, fix the merge

diff --git a/rpython/rlib/rposix.py b/rpython/rlib/rposix.py
--- a/rpython/rlib/rposix.py
+++ b/rpython/rlib/rposix.py
@@ -370,67 +370,6 @@
     def _prefer_unicode(path):
         return False
 
-<<<<<<< local
-
- at specialize.argtype(0)
-def unlink(path):
-    return os.unlink(_as_bytes(path))
-
- at specialize.argtype(0, 1)
-def rename(path1, path2):
-    return os.rename(_as_bytes(path1), _as_bytes(path2))
-
- at specialize.argtype(0, 1)
-def replace(path1, path2):
-    if os.name == 'nt':
-        raise NotImplementedError(
-            'On windows, os.replace() should overwrite the destination')
-    return os.rename(_as_bytes(path1), _as_bytes(path2))
-
- at specialize.argtype(0)
-def listdir(dirname):
-    return os.listdir(_as_bytes(dirname))
-
- at specialize.argtype(0)
-def access(path, mode):
-    return os.access(_as_bytes(path), mode)
-
- at specialize.argtype(0)
-def chmod(path, mode):
-    return os.chmod(_as_bytes(path), mode)
-
- at specialize.argtype(0, 1)
-def utime(path, times):
-    return os.utime(_as_bytes(path), times)
-
- at specialize.argtype(0)
-def chdir(path):
-    return os.chdir(_as_bytes(path))
-
- at specialize.argtype(0)
-def mkdir(path, mode=0777):
-    return os.mkdir(_as_bytes(path), mode)
-
- at specialize.argtype(0)
-def rmdir(path):
-    return os.rmdir(_as_bytes(path))
-
- at specialize.argtype(0)
-def mkfifo(path, mode):
-    os.mkfifo(_as_bytes(path), mode)
-
- at specialize.argtype(0)
-def mknod(path, mode, device):
-    os.mknod(_as_bytes(path), mode, device)
-
- at specialize.argtype(0, 1)
-def symlink(src, dest):
-    os.symlink(_as_bytes(src), _as_bytes(dest))
-
-if os.name == 'nt':
-    import nt
-=======
->>>>>>> other
     @specialize.argtype(0)
     def _preferred_traits(path):
         return string_traits
@@ -1116,6 +1055,13 @@
         if not win32traits.MoveFile(path1, path2):
             raise rwin32.lastSavedWindowsError()
 
+ at specialize.argtype(0, 1)
+def replace(path1, path2):
+    if os.name == 'nt':
+        raise NotImplementedError(
+            'On windows, os.replace() should overwrite the destination')
+    return rename(path1, path2)
+
 #___________________________________________________________________
 
 c_mkfifo = external('mkfifo', [rffi.CCHARP, rffi.MODE_T], rffi.INT,


More information about the pypy-commit mailing list