Skip to content

Commit

Permalink
Merge pull request #2316 from blink1073/fix-2313
Browse files Browse the repository at this point in the history
Use empty string instead of None for fallback.

Fixes #2313.
  • Loading branch information
ccordoba12 committed Apr 16, 2015
2 parents 7d84281 + c4e5196 commit 3bb2e3a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions spyderlib/utils/introspection/plugin_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def __init__(self, name, source_code, position, filename=None,
break
position -= 1
else:
self.docstring = None
self.docstring = ''

self.position = position

Expand All @@ -167,8 +167,8 @@ def __init__(self, name, source_code, position, filename=None,
self.column = 0
self.line_num = 0
self.line = ''
self.obj = None
self.full_obj = None
self.obj = ''
self.full_obj = ''
else:
self._get_info()

Expand Down Expand Up @@ -229,6 +229,7 @@ def _get_docstring(self):
right += 1
if left and right < len(self.source_code):
return self.source_code[left: right]
return ''

def __eq__(self, other):
try:
Expand Down

0 comments on commit 3bb2e3a

Please sign in to comment.