[Zope3-checkins] SVN: Zope3/trunk/zopeskel/bin/pyskel.in Merged rev 27404, which fixes the pyskel script.

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Sep 2 07:15:28 EDT 2004


Log message for revision 27420:
  Merged rev 27404, which fixes the pyskel script.
  


Changed:
  U   Zope3/trunk/zopeskel/bin/pyskel.in


-=-
Modified: Zope3/trunk/zopeskel/bin/pyskel.in
===================================================================
--- Zope3/trunk/zopeskel/bin/pyskel.in	2004-09-02 10:53:34 UTC (rev 27419)
+++ Zope3/trunk/zopeskel/bin/pyskel.in	2004-09-02 11:15:28 UTC (rev 27420)
@@ -27,22 +27,23 @@
 $Id: pyskel.py 26446 2004-07-13 16:11:36Z philikon $
 """
 import sys, os, re
+from types import ModuleType
 
 SOFTWARE_HOME = "<<SOFTWARE_HOME>>"
 INSTANCE_HOME = "<<INSTANCE_HOME>>"
 
 sys.path.insert(0, os.getcwd())
 
-from types import ModuleType
-from zope.interface.interface import Method
-from zope.interface import Attribute
-
 class_re = re.compile(r'\s*class\s+([a-zA-Z_][a-zA-Z0-9_]*)')
 def_re = re.compile(r'\s*def\s+([a-zA-Z_][a-zA-Z0-9_]*)')
 attr_re = re.compile(r'\s*([a-zA-Z_][a-zA-Z0-9_]*)\s*=\s*Attribute')
 
 
 def rskel(iface, top, print_iface=1):
+
+    from zope.interface.interface import Method
+    from zope.interface import Attribute
+
     name = "%s.%s" % (iface.__module__, iface.__name__)
 
     file = resolve(iface.__module__).__file__



More information about the Zope3-Checkins mailing list