From: <pj...@us...> - 2009-11-08 22:59:42
|
Revision: 6940 http://jython.svn.sourceforge.net/jython/?rev=6940&view=rev Author: pjenvey Date: 2009-11-08 22:59:13 +0000 (Sun, 08 Nov 2009) Log Message: ----------- convert gid/uids to ints Modified Paths: -------------- trunk/jython/Lib/grp.py trunk/jython/Lib/pwd.py Modified: trunk/jython/Lib/grp.py =================================================================== --- trunk/jython/Lib/grp.py 2009-11-08 22:28:36 UTC (rev 6939) +++ trunk/jython/Lib/grp.py 2009-11-08 22:59:13 UTC (rev 6940) @@ -35,7 +35,7 @@ attrs = ['gr_name', 'gr_passwd', 'gr_gid', 'gr_mem'] def __new__(cls, grp): - grp = (newString(grp.name), newString(grp.password), grp.GID, + grp = (newString(grp.name), newString(grp.password), int(grp.GID), [newString(member) for member in grp.members]) return tuple.__new__(cls, grp) Modified: trunk/jython/Lib/pwd.py =================================================================== --- trunk/jython/Lib/pwd.py 2009-11-08 22:28:36 UTC (rev 6939) +++ trunk/jython/Lib/pwd.py 2009-11-08 22:59:13 UTC (rev 6940) @@ -29,8 +29,8 @@ 'pw_dir', 'pw_shell'] def __new__(cls, pwd): - pwd = (newString(pwd.loginName), newString(pwd.password), pwd.UID, - pwd.GID, newString(pwd.GECOS), newString(pwd.home), + pwd = (newString(pwd.loginName), newString(pwd.password), int(pwd.UID), + int(pwd.GID), newString(pwd.GECOS), newString(pwd.home), newString(pwd.shell)) return tuple.__new__(cls, pwd) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |