We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aaf7aa3 commit 35e1a2fCopy full SHA for 35e1a2f
llvm/tools/opt-viewer/optrecord.py
@@ -19,35 +19,14 @@
19
from multiprocessing import Lock
20
import os, os.path
21
import subprocess
22
-
23
-try:
24
- # The previously builtin function `intern()` was moved
25
- # to the `sys` module in Python 3.
26
- from sys import intern
27
-except:
28
- pass
29
+from sys import intern
30
import re
31
32
import optpmap
33
34
35
- dict.iteritems
36
-except AttributeError:
37
- # Python 3
38
- def itervalues(d):
39
- return iter(d.values())
40
41
- def iteritems(d):
42
- return iter(d.items())
43
44
-else:
45
- # Python 2
46
47
- return d.itervalues()
48
49
50
- return d.iteritems()
+
+def iteritems(d):
+ return iter(d.items())
51
52
53
def html_file_name(filename):
0 commit comments