[LNT] r299138 - Some pep8 compliance in commands.py
Chris Matthews via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 30 16:53:41 PDT 2017
Author: cmatthews
Date: Thu Mar 30 18:53:41 2017
New Revision: 299138
URL: http://llvm.org/viewvc/llvm-project?rev=299138&view=rev
Log:
Some pep8 compliance in commands.py
Modified:
lnt/trunk/lnt/testing/util/commands.py
Modified: lnt/trunk/lnt/testing/util/commands.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/testing/util/commands.py?rev=299138&r1=299137&r2=299138&view=diff
==============================================================================
--- lnt/trunk/lnt/testing/util/commands.py (original)
+++ lnt/trunk/lnt/testing/util/commands.py Thu Mar 30 18:53:41 2017
@@ -3,7 +3,7 @@ Miscellaneous utilities for running "scr
"""
import errno
-import inspect
+
import os
import sys
import logging
@@ -56,6 +56,7 @@ def timed(func):
return timed
+
def fatal(message):
get_logger().critical(message)
sys.exit(1)
@@ -64,10 +65,11 @@ def fatal(message):
def rm_f(path):
try:
os.remove(path)
- except OSError,e:
+ except OSError as e:
if e.errno != errno.ENOENT:
raise
+
def mkdir_p(path):
"""mkdir_p(path) - Make the "path" directory, if it does not exist; this
will also make directories for any missing parent directories."""
More information about the llvm-commits
mailing list