X-Git-Url: https://git.phdru.name/?p=m_lib.git;a=blobdiff_plain;f=m_lib%2Fdefenc.py;h=edcd80be4b691d94eb51d30b43f4e8c643d3a621;hp=01d899058295b87c25a91d786fda45ac1a94b40e;hb=c5dac7ecae12952f2510f4418b44592807d30d75;hpb=8da1f0d66806e07b1fc2176e4758561839f5cbe6 diff --git a/m_lib/defenc.py b/m_lib/defenc.py index 01d8990..edcd80b 100755 --- a/m_lib/defenc.py +++ b/m_lib/defenc.py @@ -1,7 +1,7 @@ #! /usr/bin/env python """Get default encoding - Written by Oleg Broytman. Copyright (C) 2007, 2008 PhiloSoft Design. + Written by Oleg Broytman. Copyright (C) 2007-2016 PhiloSoft Design. """ __all__ = ['default_encoding'] @@ -22,7 +22,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: