[PATCH] D25169: [lit] Remove unused imports (NFC)

Brian Gesiak via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 2 18:28:49 PDT 2016


modocache created this revision.
modocache added reviewers: ddunbar, echristo, beanz.
modocache added a subscriber: llvm-commits.
Herald added a subscriber: mehdi_amini.

https://reviews.llvm.org/D25169

Files:
  utils/lit/lit/formats/base.py
  utils/lit/lit/main.py
  utils/lit/tests/Inputs/shtest-timeout/infinite_loop.py
  utils/lit/tests/Inputs/shtest-timeout/short.py


Index: utils/lit/tests/Inputs/shtest-timeout/short.py
===================================================================
--- utils/lit/tests/Inputs/shtest-timeout/short.py
+++ utils/lit/tests/Inputs/shtest-timeout/short.py
@@ -1,6 +1,4 @@
 # RUN: %{python} %s
 from __future__ import print_function
 
-import sys
-
 print("short program")
Index: utils/lit/tests/Inputs/shtest-timeout/infinite_loop.py
===================================================================
--- utils/lit/tests/Inputs/shtest-timeout/infinite_loop.py
+++ utils/lit/tests/Inputs/shtest-timeout/infinite_loop.py
@@ -1,7 +1,6 @@
 # RUN: %{python} %s
 from __future__ import print_function
 
-import time
 import sys
 
 print("Running infinite loop")
Index: utils/lit/lit/main.py
===================================================================
--- utils/lit/lit/main.py
+++ utils/lit/lit/main.py
@@ -7,7 +7,12 @@
 """
 
 from __future__ import absolute_import
-import math, os, platform, random, re, sys, time
+import os
+import platform
+import random
+import re
+import sys
+import time
 import tempfile
 import shutil
 
Index: utils/lit/lit/formats/base.py
===================================================================
--- utils/lit/lit/formats/base.py
+++ utils/lit/lit/formats/base.py
@@ -1,6 +1,5 @@
 from __future__ import absolute_import
 import os
-import sys
 
 import lit.Test
 import lit.util


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25169.73230.patch
Type: text/x-patch
Size: 1389 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161003/00f725ae/attachment-0001.bin>


More information about the llvm-commits mailing list