Message10857

Author zyasoft
Recipients zyasoft
Date 2016-05-11.16:37:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1462984662.64.0.299921237017.issue2499@psf.upfronthosting.co.za>
In-reply-to
Content
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):
     """
History
Date User Action Args
2016-05-11 16:37:42zyasoftsetmessageid: <1462984662.64.0.299921237017.issue2499@psf.upfronthosting.co.za>
2016-05-11 16:37:42zyasoftsetrecipients: + zyasoft
2016-05-11 16:37:42zyasoftlinkissue2499 messages
2016-05-11 16:37:42zyasoftcreate