Skip to content

Commit 0677bc2

Browse files
committed
Conditionally delete
1 parent a7bdee4 commit 0677bc2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

easybuild/tools/include.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@
7272
for subdir in subdirs:
7373
__path__ = pkgutil.extend_path(__path__, '%s.%s' % (__name__, subdir))
7474
75-
del char, subdir, subdirs
75+
del subdir, subdirs
76+
if 'char' in dir():
77+
del char
7678
7779
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
7880
"""

0 commit comments

Comments
 (0)