From 7ebb92ea668d32001576577b4982a32ac8f55ff1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lemburg?= Date: Tue, 13 Jun 2000 12:04:05 +0000 Subject: [PATCH] Marc-Andre Lemburg : Removed import of string module -- use string methods directly. Thanks to Finn Bock. --- Lib/encodings/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/encodings/__init__.py b/Lib/encodings/__init__.py index fa3119a6c8f..8df90209f3a 100644 --- a/Lib/encodings/__init__.py +++ b/Lib/encodings/__init__.py @@ -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(),'*')