make third parameter to importName() optional
This commit is contained in:
parent
69c026bd29
commit
79d9bd6d58
|
@ -45,7 +45,7 @@ import Mucked
|
||||||
import Database
|
import Database
|
||||||
import HUD_main
|
import HUD_main
|
||||||
|
|
||||||
def importName(module_name, name, params):
|
def importName(module_name, name, *params):
|
||||||
"""Import a named object 'name' from module 'module_name'."""
|
"""Import a named object 'name' from module 'module_name'."""
|
||||||
# Recipe 16.3 in the Python Cookbook, 2nd ed. Thanks!!!!
|
# Recipe 16.3 in the Python Cookbook, 2nd ed. Thanks!!!!
|
||||||
# Modded by Carl G to support additional params
|
# Modded by Carl G to support additional params
|
||||||
|
|
Loading…
Reference in New Issue
Block a user