Skip to content

Commit d473295

Browse files
committed
Style(cmp): Fix flake8 warnings F824
The warnings were "`global <...>` is unused: name is never assigned in scope." Eithe remove `global` or assign a dummy value.
1 parent 9363ebe commit d473295

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

Cheetah/ImportHooks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737

3838

3939
def setCacheDir(cacheDir):
40-
global _cacheDir
4140
_cacheDir.append(cacheDir)
4241

4342
##################################################
@@ -144,5 +143,6 @@ def uninstall():
144143
del ImportManager._globalOwnerTypes[0]
145144
del ImportManager.__oldimport__
146145
global _manager
146+
_manager = None
147147
del _manager
148148
_installed = False

Cheetah/Tests/Performance.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ def wrapper(*args, **kw):
6161
else:
6262
pystone_rate = current_pystone[0] / current_pystone[1]
6363
pystone_total_time = total_time / pystone_rate
64-
global DEBUG
6564
if DEBUG:
6665
print('The test "%s" took: %s pystones' % (
6766
function.__name__, pystone_total_time))

0 commit comments

Comments
 (0)