[Zope-Checkins] CVS: Zope3/lib/python/Interface - pyskel.py:1.1.2.9
Stephan Richter
srichter@cbu.edu
Fri, 29 Mar 2002 17:40:15 -0500
Update of /cvs-repository/Zope3/lib/python/Interface
In directory cvs.zope.org:/tmp/cvs-serv30633
Modified Files:
Tag: Zope-3x-branch
pyskel.py
Log Message:
Fixed buglet.
The code assumed that we have always a pyc file as file name, but sometimes
it is just a py file, so now we have to check for that explicitly.
=== Zope3/lib/python/Interface/pyskel.py 1.1.2.8 => 1.1.2.9 ===
name = "%s.%s" % (iface.__module__, iface.__name__)
- file = resolve(iface.__module__).__file__[:-1]
+ file = resolve(iface.__module__).__file__
+ if file.endswith('pyc'):
+ file = file[:-1]
order = guessOrder(open(file))
namesAndDescriptions = getAttributesInOrder(iface, order)