Files
codeql/python/ql/src/Imports/UnintentionalImport.py
2018-11-19 15:10:42 +00:00

14 lines
224 B
Python

# Example module - finance.py
__all__ = ['tax1', 'tax2'] #defines the names to import when '*' is used
tax1 = 5
tax2 = 10
def cost(): return 'cost'
# Imported into code using
from finance import *
print tax1
print tax2