Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Working directory: /usr/local/noc
- <type 'exceptions.UnicodeEncodeError'>
- 'ascii' codec can't encode characters in position 2-10: ordinal not in range(128)
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /usr/local/lib/python2.7/difflib.py (Line: 1205)
- Function: unified_diff
- 1198
- 1199 started = False
- 1200 for group in SequenceMatcher(None,a,b).get_grouped_opcodes(n):
- 1201 if not started:
- 1202 started = True
- 1203 fromdate = '\t{}'.format(fromfiledate) if fromfiledate else ''
- 1204 todate = '\t{}'.format(tofiledate) if tofiledate else ''
- 1205 ==> yield '--- {}{}{}'.format(fromfile, fromdate, lineterm)
- 1206 yield '+++ {}{}{}'.format(tofile, todate, lineterm)
- 1207
- 1208 first, last = group[0], group[-1]
- 1209 file1_range = _format_range_unified(first[1], last[2])
- 1210 file2_range = _format_range_unified(first[3], last[4])
- 1211 yield '@@ -{} +{} @@{}'.format(file1_range, file2_range, lineterm)
- Variables:
- a =
- [' 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',
- 'show configuration running\n',
- '!----------------------------------------------------------------------\n',
- '!\n',
- tofile = u'b/\u041c\u0435\u043b\u0435\u0448\u043a\u0438\u043d\u0430 40'
- fromdate = ''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement