[Zope3-checkins] CVS: Packages3/Interface - pyskel.py:1.11
Steve Alexander
steve@cat-box.net
Fri, 13 Jun 2003 08:09:10 -0400
Update of /cvs-repository/Packages3/Interface
In directory cvs.zope.org:/tmp/cvs-serv8012
Modified Files:
pyskel.py
Log Message:
updated to new interface style
=== Packages3/Interface/pyskel.py 1.10 => 1.11 ===
--- Packages3/Interface/pyskel.py:1.10 Fri Apr 18 06:03:18 2003
+++ Packages3/Interface/pyskel.py Fri Jun 13 08:09:10 2003
@@ -81,10 +81,11 @@
if class_name.startswith('I'):
class_name = class_name[1:]
print "from %s import %s" % (iface.__module__, iface.__name__)
+ print "from zope.interface import implements"
print
- print "class %s:" %class_name
+ print "class %s:" % class_name
print
- print " __implements__ = ", iface.__name__
+ print " implements(%s)" % iface.__name__
print
print " ############################################################"
print " # Implementation methods for interface"