Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c4ea8f8

Browse files
committed
Fix Pep8
1 parent 126ae67 commit c4ea8f8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

bin/diamond

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,10 @@ def main():
207207
os.initgroups(pwd.getpwuid(uid).pw_name, gid)
208208
# Python 2.6
209209
else:
210-
os.setgroups([e.gr_gid for e in grp.getgrall()
211-
if pwd.getpwuid(uid).pw_name in e.gr_mem] + [gid])
210+
os.setgroups(
211+
[e.gr_gid for e in grp.getgrall() if pwd.getpwuid(
212+
uid).pw_name in e.gr_mem] + [gid]
213+
)
212214

213215
if gid != -1 and os.getgid() != gid:
214216
# Set GID
@@ -333,6 +335,7 @@ def main():
333335
log.error("traceback: %s" % traceback.format_exc())
334336
sys.exit(1)
335337

338+
336339
if __name__ == "__main__":
337340
if setproctitle:
338341
setproctitle(os.path.basename(__file__))

0 commit comments

Comments
 (0)