diff options
Diffstat (limited to 'netlib/strutils.py')
-rw-r--r-- | netlib/strutils.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/netlib/strutils.py b/netlib/strutils.py index 5ad41c7e..ca6eaa42 100644 --- a/netlib/strutils.py +++ b/netlib/strutils.py @@ -1,4 +1,3 @@ -import re import unicodedata import codecs @@ -56,15 +55,6 @@ def clean_bin(s, keep_spacing=True): ) -def safe_subn(pattern, repl, target, *args, **kwargs): - """ - There are Unicode conversion problems with re.subn. We try to smooth - that over by casting the pattern and replacement to strings. We really - need a better solution that is aware of the actual content ecoding. - """ - return re.subn(str(pattern), str(repl), target, *args, **kwargs) - - def bytes_to_escaped_str(data): """ Take bytes and return a safe string that can be displayed to the user. |