#! /usr/bin/env python
-"""Get default encoding
-
- Written by Oleg Broytman. Copyright (C) 2007, 2008 PhiloSoft Design.
-"""
+"""Get default encoding"""
__all__ = ['default_encoding']
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: