X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=m_lib%2Fdefenc.py;h=90add9d4092b70b7eb30ec4f72de4611f17b56d7;hb=8d79317cdc8220ff3c2192e68fc1dfc749c3ea1c;hp=01d899058295b87c25a91d786fda45ac1a94b40e;hpb=d7c459a9f979c4978cf07ff11056512a852fd61d;p=m_lib.git diff --git a/m_lib/defenc.py b/m_lib/defenc.py index 01d8990..90add9d 100755 --- a/m_lib/defenc.py +++ b/m_lib/defenc.py @@ -1,8 +1,5 @@ #! /usr/bin/env python -"""Get default encoding - - Written by Oleg Broytman. Copyright (C) 2007, 2008 PhiloSoft Design. -""" +"""Get default encoding""" __all__ = ['default_encoding'] @@ -22,7 +19,7 @@ if use_locale: print >>sys.stderr, "WARNING:", err lcAll = [] - if len(lcAll) == 2: + if len(lcAll) == 2 and lcAll[0] is not None: default_encoding = lcAll[1] else: try: