aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/Shell/helper/build.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/Shell/helper/build.py')
-rwxr-xr-xlldb/test/Shell/helper/build.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/lldb/test/Shell/helper/build.py b/lldb/test/Shell/helper/build.py
index caaa14f..a5a7e99 100755
--- a/lldb/test/Shell/helper/build.py
+++ b/lldb/test/Shell/helper/build.py
@@ -9,12 +9,8 @@ import subprocess
import sys
if sys.platform == "win32":
- # This module was renamed in Python 3. Make sure to import it using a
- # consistent name regardless of python version.
- try:
- import winreg
- except:
- import _winreg as winreg
+ import winreg
+
if __name__ != "__main__":
raise RuntimeError("Do not import this script, run it instead")