1
0
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:
cheater
2012-02-08 07:48:26 +01:00
committed by cheater
parent f323d3cc74
commit d6046886a3

View File

@@ -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
# }}}