Cleanup and small fixes

This commit is contained in:
topjohnwu
2017-12-04 18:05:07 +08:00
parent 70a322263e
commit bb97cc594d
9 changed files with 7 additions and 15 deletions

View File

@@ -58,7 +58,7 @@ def cp(source, target):
def rm(file):
try:
os.remove(file)
os.remove(file)
except OSError as e:
if e.errno != errno.ENOENT:
raise
@@ -435,8 +435,8 @@ clean_parser.add_argument('target', nargs='*')
clean_parser.set_defaults(func=cleanup)
if len(sys.argv) == 1:
parser.print_help()
sys.exit(1)
parser.print_help()
sys.exit(1)
args = parser.parse_args()