Advertisement
Guest User

Untitled

a guest
Jan 31st, 2014
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. Working directory: /usr/local/noc
  2. <type 'exceptions.UnicodeEncodeError'>
  3. 'ascii' codec can't encode characters in position 2-10: ordinal not in range(128)
  4. START OF TRACEBACK
  5. ------------------------------------------------------------------------
  6. File: /usr/local/lib/python2.7/difflib.py (Line: 1205)
  7. Function: unified_diff
  8. 1198
  9. 1199 started = False
  10. 1200 for group in SequenceMatcher(None,a,b).get_grouped_opcodes(n):
  11. 1201 if not started:
  12. 1202 started = True
  13. 1203 fromdate = '\t{}'.format(fromfiledate) if fromfiledate else ''
  14. 1204 todate = '\t{}'.format(tofiledate) if tofiledate else ''
  15. 1205 ==> yield '--- {}{}{}'.format(fromfile, fromdate, lineterm)
  16. 1206 yield '+++ {}{}{}'.format(tofile, todate, lineterm)
  17. 1207
  18. 1208 first, last = group[0], group[-1]
  19. 1209 file1_range = _format_range_unified(first[1], last[2])
  20. 1210 file2_range = _format_range_unified(first[3], last[4])
  21. 1211 yield '@@ -{} +{} @@{}'.format(file1_range, file2_range, lineterm)
  22. Variables:
  23. a =
  24. [' 08-Dec-2013 23:08:11 %AAA-I-CONNECT: User CLI session for user mitya over telnet , source 10.116.0.211 destination 10.116.0.91 ACCEPTED\n',
  25. 'show configuration running\n',
  26. '!----------------------------------------------------------------------\n',
  27. '!\n',
  28.  
  29.  
  30.  
  31.  
  32.  
  33. tofile = u'b/\u041c\u0435\u043b\u0435\u0448\u043a\u0438\u043d\u0430 40'
  34. fromdate = ''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement