[PATCH] Rename posix to hgposix to prevent name clash (issue1575)
Christian Ebert
blacktrash at gmx.net
Tue Mar 31 03:47:02 CDT 2009
Hi,
I don't know _exactly_ why there is a collision but this fixes it
for me.
Aside:
I still think I should rename hgext/keyword.py as pychecker fails
in the same manner if I do not rename it.
c
# HG changeset patch
# User Christian Ebert <blacktrash at gmx.net>
# Date 1238488471 -7200
# Node ID 8a630dd7a4a6abf091cdf2bc0c5537f93a9f89a5
# Parent 06bf7600924966c5cab92629a15a26d5613ad763
Rename posix to hgposix to prevent name clash (issue1575)
On some systems util's "from posix import *" collides with
the standard lib's posixfile.py
$ pychecker posix.py
Processing module posix (posix.py)...
Caught exception importing module posix:
AttributeError: 'NoneType' object has no attribute 'module'
Warnings...
posix:1: NOT PROCESSED UNABLE TO IMPORT
diff --git a/mercurial/posix.py b/mercurial/hgposix.py
rename from mercurial/posix.py
rename to mercurial/hgposix.py
diff --git a/mercurial/util.py b/mercurial/util.py
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -858,7 +858,7 @@
ret.append(p)
return ret
else:
- from posix import *
+ from hgposix import *
def makelock(info, pathname):
try:
More information about the Mercurial-devel
mailing list