[py-svn] r9229 - py/dist/py/code
hpk at codespeak.net
hpk at codespeak.net
Tue Feb 15 11:11:03 CET 2005
Author: hpk
Date: Tue Feb 15 11:11:03 2005
New Revision: 9229
Modified:
py/dist/py/code/source.py
Log:
removed superflous code changed by pychecker
Modified: py/dist/py/code/source.py
==============================================================================
--- py/dist/py/code/source.py (original)
+++ py/dist/py/code/source.py Tue Feb 15 11:11:03 2005
@@ -145,9 +145,6 @@
newsource.lines[:] = deindent(self.lines, offset)
return newsource
- def __len__(self):
- return len(self.lines)
-
def isparseable(self, deindent=True):
""" return True if source is parseable, heuristically
deindenting it by default.
@@ -220,7 +217,6 @@
try:
fullsource = obj.co_filename.__source__
except AttributeError:
- import inspect
strsrc = inspect.getsource(obj)
assert isinstance(strsrc, str)
return Source(strsrc, **kwargs)
More information about the pytest-commit
mailing list