changed all of the currency substitutions from byte stream (i.e. \xe2\x82\xac for EURO) to unicode (u'\u20AC') as it was throwing unicode errors when attempting to format the string in the various regex statements. I am aware that I may be the only one to encounter this problem.

This commit is contained in:
Chaz Littlejohn
2011-03-23 19:27:55 +00:00
parent 66e1cc3704
commit d0ae2a155d
10 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ class FullTiltPokerSummary(TourneySummary):
substitutions = {
'LEGAL_ISO' : "USD|EUR|GBP|CAD|FPP", # legal ISO currency codes
'LS' : "\$|\xe2\x82\xac|", # legal currency symbols - Euro(cp1252, utf-8)
'LS' : u"\$|\u20AC|", # legal currency symbols - Euro(cp1252, utf-8)
'TAB' : u"-\u2013'\s\da-zA-Z", # legal characters for tablename
'NUM' : u".,\d", # legal characters in number format
}