Skip to content

Commit e6ff24a

Browse files
committed
format code for flake8.
1 parent 3ead52f commit e6ff24a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

top.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# -*- coding: utf-8 -*-
21
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
33

44
# top.py -- top command implemented use python.
55
# get infomation from /proc system.

which.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@
88
import sys
99
import os
1010
import os.path
11-
import stat
11+
1212

1313
def usage():
1414
sys.stderr.write("Usage: python which.py name\n")
1515
sys.stderr.write("or: which.py name\n")
1616

17+
1718
def which(name):
1819
found = 0
1920
for path in os.getenv("PATH").split(os.path.pathsep):
@@ -30,6 +31,7 @@ def which(name):
3031
# Programming shortcut to toggle the value of found: 1 => 0, 0 => 1.
3132
sys.exit(1 - found)
3233

34+
3335
def main():
3436
if len(sys.argv) != 2:
3537
usage()
@@ -38,4 +40,3 @@ def main():
3840

3941
if "__main__" == __name__:
4042
main()
41-

0 commit comments

Comments
 (0)