mirror of
https://github.com/gryf/pythonhelper.git
synced 2025-12-18 20:10:24 +01:00
Exceptions can tell you the same thing.
This commit is contained in:
@@ -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
|
||||
self.source = source
|
||||
# }}}
|
||||
|
||||
Reference in New Issue
Block a user