Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

AttributeError: 'module' object has no attribute '_format_range_unified' #5

Closed
jedie opened this Issue · 3 comments

1 participant

Jens Diemer
Jens Diemer
Owner

new in python 2.7 ?

  File "/home/jens/PyLucid_env/lib/python2.6/site-packages/reversion_compare/helpers.py", line 81, in unified_diff
    file1_range = difflib._format_range_unified(first[1], last[2])

AttributeError: 'module' object has no attribute '_format_range_unified'
Jens Diemer
Owner

fixed with f24648d

Jens Diemer jedie closed this
Jens Diemer
Owner

Seems not to be fixed:

  File "/home/jens/PyLucid_env/lib/python2.6/site-packages/reversion_compare/helpers.py", line 92, in unified_diff
    yield '@@ -{} +{} @@'.format(file1_range, file2_range)

ValueError: zero length field name in format

btw. me must add unitests for this!

Jens Diemer jedie reopened this
Jens Diemer
Owner

fixed with 4e47a28

Jens Diemer jedie closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.