Fix _ucache some more

This commit is contained in:
Matt Mackall 2009-07-06 15:20:41 -05:00
commit 5b9a248b9a

2
smem
View file

@ -45,7 +45,7 @@ class procdata(object):
def pidgroup(self, pid):
return self._stat('%d/cmdline' % pid).st_gid
def username(self, uid):
if uid not in _ucache:
if uid not in self._ucache:
self._ucache[uid] = pwd.getpwuid(uid)[0]
return self._ucache[uid]
def groupname(self, gid):