aboutsummaryrefslogtreecommitdiff
path: root/lld/utils/benchmark.py
diff options
context:
space:
mode:
Diffstat (limited to 'lld/utils/benchmark.py')
-rwxr-xr-xlld/utils/benchmark.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/lld/utils/benchmark.py b/lld/utils/benchmark.py
index 7202e07..059f82a 100755
--- a/lld/utils/benchmark.py
+++ b/lld/utils/benchmark.py
@@ -13,13 +13,8 @@ import subprocess
import json
import datetime
import argparse
-
-try:
- from urllib.parse import urlencode
- from urllib.request import urlopen, Request
-except ImportError:
- from urllib import urlencode
- from urllib2 import urlopen, Request
+from urllib.parse import urlencode
+from urllib.request import urlopen, Request
parser = argparse.ArgumentParser()