Changeset 98648 in vbox for trunk/src/VBox/ValidationKit/common
- Timestamp:
- Feb 20, 2023 12:55:13 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/common/utils.py
r98103 r98648 74 74 xrange = range; # pylint: disable=redefined-builtin,invalid-name 75 75 long = int; # pylint: disable=redefined-builtin,invalid-name 76 77 78 # 79 # Python 2/3 glue. 80 # 81 82 if sys.version_info[0] >= 3: 83 def iteritems(dDict): 84 """ 85 Wrapper around dict.items() / dict.iteritems(). 86 """ 87 return iter(dDict.items()); 88 else: 89 def iteritems(dDict): 90 """ 91 Wrapper around dict.items() / dict.iteritems(). 92 """ 93 return dDict.iteritems(); 76 94 77 95 … … 2267 2285 # 20%+ speedup for python 2.7 and 15%+ speedup for python 3.5, both on windows skipping PDBs. 2268 2286 # 2269 if True is True: # pylint: disable=comparison-with-itself 2287 if True is True: # pylint: disable=comparison-with-itself,comparison-of-constants 2270 2288 __installShUtilHacks(shutil); 2271 2289 global g_fTarCopyFileObjOverriddend;
Note:
See TracChangeset
for help on using the changeset viewer.