summaryrefslogtreecommitdiffstats
path: root/Lib/encodings/__init__.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2000-03-20 16:36:48 (GMT)
committerBarry Warsaw <barry@python.org>2000-03-20 16:36:48 (GMT)
commit51ac58039f62ef9d605974dae32a6ada9c26039b (patch)
treec8aee44da7330978efe15671b2c9e98bc898eea3 /Lib/encodings/__init__.py
parentabc411bac883c1706a9dcc8b1bea85a0b940cbfb (diff)
downloadcpython-51ac58039f62ef9d605974dae32a6ada9c26039b.zip
cpython-51ac58039f62ef9d605974dae32a6ada9c26039b.tar.gz
cpython-51ac58039f62ef9d605974dae32a6ada9c26039b.tar.bz2
On 17-Mar-2000, Marc-Andre Lemburg said:
Attached you find an update of the Unicode implementation. The patch is against the current CVS version. I would appreciate if someone with CVS checkin permissions could check the changes in. The patch contains all bugs and patches sent this week and also fixes a leak in the codecs code and a bug in the free list code for Unicode objects (which only shows up when compiling Python with Py_DEBUG; thanks to MarkH for spotting this one).
Diffstat (limited to 'Lib/encodings/__init__.py')
-rw-r--r--Lib/encodings/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/encodings/__init__.py b/Lib/encodings/__init__.py
index c33b822..cd5876e 100644
--- a/Lib/encodings/__init__.py
+++ b/Lib/encodings/__init__.py
@@ -30,13 +30,13 @@ Written by Marc-Andre Lemburg (mal@lemburg.com).
import string,codecs,aliases
_cache = {}
-_unkown = '--unkown--'
+_unknown = '--unknown--'
def search_function(encoding):
# Cache lookup
- entry = _cache.get(encoding,_unkown)
- if entry is not _unkown:
+ entry = _cache.get(encoding,_unknown)
+ if entry is not _unknown:
return entry
# Import the module