From d6046886a32584a7911aaddde59ae43a4c2e2e6f Mon Sep 17 00:00:00 2001 From: cheater Date: Wed, 8 Feb 2012 07:48:26 +0100 Subject: [PATCH] Exceptions can tell you the same thing. --- plugin/pythonhelper.vim | 7 ------- 1 file changed, 7 deletions(-) diff --git a/plugin/pythonhelper.vim b/plugin/pythonhelper.vim index d8b6730..3846ab2 100644 --- a/plugin/pythonhelper.vim +++ b/plugin/pythonhelper.vim @@ -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 # }}}