[Zope-Checkins] CVS: Zope3/lib/python/Zope/Server/FTP - OSEmulators.py:1.1.4.2
Shane Hathaway
shane@cvs.zope.org
Thu, 18 Apr 2002 17:46:17 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/Server/FTP
In directory cvs.zope.org:/tmp/cvs-serv26594/FTP
Modified Files:
Tag: Zope-3x-branch
OSEmulators.py
Log Message:
Another minor change that might fix Windows tests
=== Zope3/lib/python/Zope/Server/FTP/OSEmulators.py 1.1.4.1 => 1.1.4.2 ===
import stat
import time
-import pwd, grp
months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun',
'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
@@ -36,7 +35,9 @@
def unix_longify((file, stat_info)):
- # for now, only pay attention to the lower bits
+ # for now, only pay attention to the lower bits
+
+ import pwd, grp
try: username = pwd.getpwuid(int(stat_info[stat.ST_UID]))[0]
except: username = stat_info[stat.ST_UID]