Utilities/__init__.py

changeset 56
3bd61d38c924
parent 55
b5c84934de9c
child 69
2e78b0aab87e
--- a/Utilities/__init__.py	Wed Jan 13 18:53:58 2010 +0000
+++ b/Utilities/__init__.py	Thu Jan 14 07:59:02 2010 +0000
@@ -267,7 +267,7 @@
     
     return etext, encoding
     
-_escape = re.compile(eval(r'"[&<>\"\u0080-\uffff]"'))
+_escape = re.compile("[&<>\"\u0080-\uffff]")
 
 _escape_map = {
     "&": "&amp;",
@@ -303,7 +303,7 @@
     text = pattern.sub(escape_entities, text)
     return text
 
-_uescape = re.compile(r'[\u0080-\uffff]')
+_uescape = re.compile('[\u0080-\uffff]')
 
 def escape_uentities(m):
     """

eric ide

mercurial