Message10857
Here's the actual diff for the hacky workaround:
diff --git a/lazy_reload.py b/lazy_reload.py
index 566521e..1694775 100644
--- a/lazy_reload.py
+++ b/lazy_reload.py
@@ -40,7 +40,10 @@ else:
modules_to_reload = {}
def is_submodule_name( name, root_name ):
- return (name + '.').startswith(root_name + '.')
+ try:
+ return (name + '.').startswith(root_name + '.')
+ except:
+ return (name + '.').startswith(root_name.__name__ + '.')
def lazy_reload(root_module):
""" |
|
Date |
User |
Action |
Args |
2016-05-11 16:37:42 | zyasoft | set | messageid: <1462984662.64.0.299921237017.issue2499@psf.upfronthosting.co.za> |
2016-05-11 16:37:42 | zyasoft | set | recipients:
+ zyasoft |
2016-05-11 16:37:42 | zyasoft | link | issue2499 messages |
2016-05-11 16:37:42 | zyasoft | create | |
|