mirror of
https://github.com/gryf/pythonhelper.git
synced 2026-11-20 20:56:54 +01:00
Exceptions can tell you the same thing.
This commit is contained in:
1 parent
f323d3cc74
commit
d6046886a3
1 file changed
-7
@@ -158,13 +158,6 @@ class SimplePythonTagsParser(object):
|
|||||||
"""
|
"""
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
# CODE {{{
|
|
||||||
# make sure source has readline() method {{{
|
|
||||||
if ((hasattr(source, 'readline') == 0) or
|
|
||||||
(callable(source.readline) == 0)):
|
|
||||||
raise AttributeError("Source must have callable readline method.")
|
|
||||||
# }}}
|
|
||||||
|
|
||||||
# remember what the source is
|
# remember what the source is
|
||||||
self.source = source
|
self.source = source
|
||||||
# }}}
|
# }}}
|
||||||
|
|||||||
Reference in new issue
Block a user