summaryrefslogtreecommitdiff
path: root/utils/users.py
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2013-04-12 11:02:38 +0200
committerArthur de Jong <arthur@arthurdejong.org>2013-04-12 11:08:25 +0200
commitb15dc66dcd4f85e06b112568fe154d3e7c7659da (patch)
tree6e51590b9ba4b081f04da242b35896e240909cf0 /utils/users.py
parentd3c6a66ac3b76b571fcb2377b0edf41c4c67a4d5 (diff)
Python style changes
This tries to conform more closely to PEP8. Imports have been checked and, if used only once, moved closer to the use to avoid potential import loops. This also includes a few other minor changes, like using __main__ for utility scripts and variable renames to avoid name clashes.
Diffstat (limited to 'utils/users.py')
-rw-r--r--utils/users.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/users.py b/utils/users.py
index 02216d6..3387318 100644
--- a/utils/users.py
+++ b/utils/users.py
@@ -34,8 +34,8 @@ class User(object):
else:
self.asroot = False
userinfo = pwd.getpwuid(self.myuid)
- (self.username, ignore, self.uid, self.gid, self.gecos, self.homedir,
- self.shell) = userinfo
+ (self.username, self.password, self.uid, self.gid, self.gecos,
+ self.homedir, self.shell) = userinfo
# if we are trying to modify another user we should be root
self.asroot = self.myuid != self.uid