Message90651
traced culprit to sre_parse.py <line 711> (where literal is always str):
...
def parse_template(source, pattern):
# parse 're' replacement string into list of literals and
# group references
s = Tokenizer(source)
sget = s.get
p = []
a = p.append
def literal(literal, p=p, pappend=a):
if p and p[-1][0] is LITERAL:
p[-1] = LITERAL, p[-1][1] + literal
else:
pappend((LITERAL, literal))
...
a possible hack-around is <line 717>:
...
a = p.append
def literal(literal, p=p, pappend=a):
if isinstance(source, (bytes, bytearray)): # hack
literal = literal.encode() # hack str->bytes
if p and p[-1][0] is LITERAL:
... |
|
Date |
User |
Action |
Args |
2009-07-18 01:40:54 | kaizhu | set | recipients:
+ kaizhu |
2009-07-18 01:40:54 | kaizhu | set | messageid: <1247881254.19.0.244856948962.issue6509@psf.upfronthosting.co.za> |
2009-07-18 01:40:53 | kaizhu | link | issue6509 messages |
2009-07-18 01:40:52 | kaizhu | create | |
|