Re: [patch] UnicodeDecodeError in tools.Replacer.replace with non-ascii ch
will <[email protected]> Wed, 08 Jul 2009 18:19:20 -0400
| Newsgroups | gmane.comp.web.pyblosxom.devel |
|---|---|
| Message-ID | <[email protected]> |
Checked in as r1331. Thank you! Бондаренко Андрей Витальевич wrote: > Yes. Changing _/VAR/_REGEXP to a byte string resolves the issue too. > > > > Index: tools.py > > =================================================================== > > --- tools.py (revision 1330) > > +++ tools.py (working copy) > > @@ -33,7 +33,7 @@ > > MONTHS = None > > > > # regular expression for detection and substituion of variables. > > -_VAR_REGEXP = re.compile(ur""" > > +_VAR_REGEXP = re.compile(r""" > > (?<!\\) # if the $ is escaped, then this isn't a variable > > \$ # variables start with a $ > > ( ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Pyblosxom-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pyblosxom-devel