[Python-3000-checkins] r55908 - python/branches/p3yk/Lib/abc.py
guido.van.rossum
python-3000-checkins at python.org
Mon Jun 11 19:49:22 CEST 2007
Author: guido.van.rossum
Date: Mon Jun 11 19:49:18 2007
New Revision: 55908
Modified:
python/branches/p3yk/Lib/abc.py
Log:
Get rid of unused imports and comment.
Modified: python/branches/p3yk/Lib/abc.py
==============================================================================
--- python/branches/p3yk/Lib/abc.py (original)
+++ python/branches/p3yk/Lib/abc.py Mon Jun 11 19:49:18 2007
@@ -3,13 +3,6 @@
"""Abstract Base Classes (ABCs) according to PEP 3119."""
-import sys
-import inspect
-import itertools
-
-
-### ABC SUPPORT FRAMEWORK ###
-
def abstractmethod(funcobj):
"""A decorator indicating abstract methods.
@@ -129,8 +122,6 @@
def _dump_registry(cls, file=None):
"""Debug helper to print the ABC registry."""
- if file is None:
- file = sys.stdout
print("Class: %s.%s" % (cls.__module__, cls.__name__), file=file)
print("Inv.counter: %s" % ABCMeta.__invalidation_counter, file=file)
for name in sorted(cls.__dict__.keys()):
More information about the Python-3000-checkins
mailing list