Marc-Andre Lemburg <mal@lemburg.com>:

Removed import of string module -- use string methods directly.
Thanks to Finn Bock.
This commit is contained in:
Marc-André Lemburg 2000-06-13 12:04:05 +00:00
parent 6b14eebae6
commit 7ebb92ea66
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ Written by Marc-Andre Lemburg (mal@lemburg.com).
"""#"
import string,codecs,aliases
import codecs,aliases
_cache = {}
_unknown = '--unknown--'
@ -40,7 +40,7 @@ def search_function(encoding):
return entry
# Import the module
modname = string.replace(encoding, '-', '_')
modname = encoding.replace('-', '_')
modname = aliases.aliases.get(modname,modname)
try:
mod = __import__(modname,globals(),locals(),'*')