Advertisement
olemis

Unicode error in Trac wiki formatter

Mar 3rd, 2013
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.54 KB | None | 0 0
  1. $ python setup.py test -m tests
  2.  
  3. [...]
  4.  
  5. ======================================================================
  6. ERROR: Test Product link SHREF_TARGET_FIRST
  7. ----------------------------------------------------------------------
  8. Traceback (most recent call last):
  9.   File "/path/to/bloodhound/trac/trac/wiki/tests/formatter.py", line 181, in test
  10.     v = unicode(formatter.generate(**self.generate_opts))
  11.   File "/path/to/bloodhound/trac/trac/wiki/formatter.py", line 1501, in generate
  12.     escape_newlines)
  13.   File "/path/to/bloodhound/trac/trac/wiki/formatter.py", line 1283, in format
  14.     result = re.sub(self.wikiparser.rules, self.replace, line)
  15.   File "/path/to/venv/lib/python2.6/re.py", line 151, in sub
  16.     return _compile(pattern, 0).sub(repl, string, count)
  17.   File "/path/to/bloodhound/trac/trac/wiki/formatter.py", line 1201, in replace
  18.     replacement = self.handle_match(fullmatch)
  19.   File "/path/to/bloodhound/trac/trac/wiki/formatter.py", line 1197, in handle_match
  20.     return internal_handler(match, fullmatch)
  21.   File "/path/to/bloodhound/trac/trac/wiki/formatter.py", line 584, in _shref_formatter
  22.     return self._make_link(ns, target, match, match, fullmatch)
  23.   File "/path/to/bloodhound/trac/trac/wiki/formatter.py", line 634, in _make_link
  24.     return resolver(self, ns, target, escape(label, False),
  25.   File "/usr/local/lib/python2.6/dist-packages/Genshi-0.6-py2.6.egg/genshi/core.py", line 517, in escape
  26.     return cls(text)
  27. UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 8: ordinal not in range(128)
  28.  
  29. [...]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement