Prospective Python 3 fix for r198150
authorAlp Toker <alp@nuanti.com>
Sun, 29 Dec 2013 05:51:07 +0000 (05:51 +0000)
committerAlp Toker <alp@nuanti.com>
Sun, 29 Dec 2013 05:51:07 +0000 (05:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198152 91177308-0d34-0410-b5e6-96231b3b80d8

utils/lit/lit/main.py

index 3c49e854067055bcc4324b5ddc6414bf1184623e..86db3d8f5ac05240d7d4e000f005eb1ebd97a9aa 100755 (executable)
@@ -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