##// END OF EJS Templates
posix: move a global fcntl import to keep it from breaking jython...
Ronny Pfannschmidt -
r10757:ab378245 default
parent child Browse files
Show More
@@ -7,7 +7,7 b''
7
7
8 from i18n import _
8 from i18n import _
9 import osutil
9 import osutil
10 import os, sys, errno, stat, getpass, pwd, grp, fcntl
10 import os, sys, errno, stat, getpass, pwd, grp
11
11
12 posixfile = open
12 posixfile = open
13 nulldev = '/dev/null'
13 nulldev = '/dev/null'
@@ -118,6 +118,7 b' def samedevice(fpath1, fpath2):'
118 return st1.st_dev == st2.st_dev
118 return st1.st_dev == st2.st_dev
119
119
120 if sys.platform == 'darwin':
120 if sys.platform == 'darwin':
121 import fcntl # only needed on darwin, missing on jython
121 def realpath(path):
122 def realpath(path):
122 '''
123 '''
123 Returns the true, canonical file system path equivalent to the given
124 Returns the true, canonical file system path equivalent to the given
General Comments 0
You need to be logged in to leave comments. Login now