Commits

Andrey Lesnikov  committed 6224d79

misc.py: Updated diff()

  • Participants
  • Parent commits a5e0fcd

Comments (0)

Files changed (1)

 
 
 def diff(expected, real):
-    import difflib
+    '''TODO: diff strings'''
     expected_s = pretty_print(expected).split('\n')
     real_s = pretty_print(real).split('\n')
-    # d = difflib.Differ()
-    # result = list(d.compare(expected_s, real_s))
-    # for out in result: print(out)
     diff = difflib.unified_diff(expected_s, real_s, lineterm='')
     out = '\n'.join(diff)
     return out