From: Alp Toker Date: Sun, 29 Dec 2013 05:51:07 +0000 (+0000) Subject: Prospective Python 3 fix for r198150 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=aa29cf421abda05d159268065a81e238aacf5b85;p=oota-llvm.git Prospective Python 3 fix for r198150 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198152 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/lit/lit/main.py b/utils/lit/lit/main.py index 3c49e854067..86db3d8f5ac 100755 --- a/utils/lit/lit/main.py +++ b/utils/lit/lit/main.py @@ -124,7 +124,7 @@ def sort_by_incremental_cache(run, litConfig): fname = test.getFilePath() try: index = -os.path.getmtime(fname) - except os.error as e: + except OSError as e: if litConfig.debug: litConfig.note(e) return index