summaryrefslogtreecommitdiffstats
path: root/Lib/encodings/__init__.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2003-01-26 11:30:36 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2003-01-26 11:30:36 (GMT)
commit9789aefa616c14599af600bdea925299517da730 (patch)
tree801c3f6ed8aafb3aafeae179737c9aea5e185bb9 /Lib/encodings/__init__.py
parentafef4eefa8b07287abe1c59b9ef918e91386f454 (diff)
downloadcpython-9789aefa616c14599af600bdea925299517da730.zip
cpython-9789aefa616c14599af600bdea925299517da730.tar.gz
cpython-9789aefa616c14599af600bdea925299517da730.tar.bz2
Patch #670715: Universal Unicode Codec for POSIX iconv.
Diffstat (limited to 'Lib/encodings/__init__.py')
-rw-r--r--Lib/encodings/__init__.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/encodings/__init__.py b/Lib/encodings/__init__.py
index 66bea5c..5e4167b 100644
--- a/Lib/encodings/__init__.py
+++ b/Lib/encodings/__init__.py
@@ -120,3 +120,9 @@ def search_function(encoding):
# Register the search_function in the Python codec registry
codecs.register(search_function)
+
+# Register iconv_codec lookup function if available
+try:
+ import iconv_codec
+except ImportError:
+ pass