Skip to content

Commit

Permalink
Merge pull request #37 from matsjoyce/py3_source
Browse files Browse the repository at this point in the history
Fixes small python3 compatibility issue in dill.source
  • Loading branch information
mmckerns committed May 11, 2014
2 parents e78cd06 + 89a2f91 commit 068cfd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dill/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def findsource(object):
else: # not a lambda, just look for the name
if name in line: # need to check for decorator...
hats = 0
for _lnum in xrange(lnum-1,-1,-1):
for _lnum in range(lnum-1,-1,-1):
if pat2.match(lines[_lnum]): hats += 1
else: break
lnum = lnum - hats
Expand Down

0 comments on commit 068cfd6

Please sign in to comment.