Skip to content
This repository

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

Closed
jedie opened this Issue June 04, 2012 · 3 comments

1 participant

Jens Diemer
Jens Diemer
Owner
jedie commented June 04, 2012

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
jedie commented June 04, 2012

fixed with f24648d

Jens Diemer jedie closed this June 04, 2012
Jens Diemer
Owner
jedie commented June 05, 2012

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 June 05, 2012
Jens Diemer
Owner
jedie commented June 11, 2012

fixed with 4e47a28

Jens Diemer jedie closed this June 11, 2012
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.