All Samples(716) | Call(686) | Derive(0) | Import(30)
getdefaultencoding() -> string Return the current default string encoding used by the Unicode implementation.
src/b/t/btqueue-HEAD/trunk/btqueue/BitTornado/BT1/makemetafile.py btqueue(Download)
from sys import getfilesystemencoding
ENCODING = getfilesystemencoding()
except:
from sys import getdefaultencoding
ENCODING = getdefaultencoding()
defaults = [
src/b/t/btqueue-HEAD/btqueue/BitTornado/BT1/makemetafile.py btqueue(Download)
from sys import getfilesystemencoding
ENCODING = getfilesystemencoding()
except:
from sys import getdefaultencoding
ENCODING = getdefaultencoding()
defaults = [
src/k/m/kmkey-HEAD/bundles/kmkey-08.03.01/ManagableIndex/ManagableIndex.py kmkey(Download)
from types import IntType, LongType, FloatType, \
StringType, UnicodeType, \
TupleType, InstanceType
from sys import modules, getdefaultencoding
from re import escape, compile
from Globals import InitializeClass
def _checkUnicode(index,value,object, encode=None):
'''return *value*, maybe converted, if it is a unicode string.'''
if isinstance(value,UnicodeType): return value
try:
nv= unicode(value, encode or getdefaultencoding())
except:
raise TypeError("cannot convert %s to string" % str(value))
src/k/m/kmkey-HEAD/bundles/kmkey-08.02.02/ManagableIndex/ManagableIndex.py kmkey(Download)
from types import IntType, LongType, FloatType, \
StringType, UnicodeType, \
TupleType, InstanceType
from sys import modules, getdefaultencoding
from re import escape, compile
from Globals import InitializeClass
def _checkUnicode(index,value,object, encode=None):
'''return *value*, maybe converted, if it is a unicode string.'''
if isinstance(value,UnicodeType): return value
try:
nv= unicode(value, encode or getdefaultencoding())
except:
raise TypeError("cannot convert %s to string" % str(value))
src/k/m/kmkey-HEAD/bundles/kmkey-08.01.02/ManagableIndex/ManagableIndex.py kmkey(Download)
from types import IntType, LongType, FloatType, \
StringType, UnicodeType, \
TupleType, InstanceType
from sys import modules, getdefaultencoding
from re import escape, compile
from Globals import InitializeClass
def _checkUnicode(index,value,object, encode=None):
'''return *value*, maybe converted, if it is a unicode string.'''
if isinstance(value,UnicodeType): return value
try:
nv= unicode(value, encode or getdefaultencoding())
except:
raise TypeError("cannot convert %s to string" % str(value))
src/c/e/centraluploader-HEAD/bin/unix/BitTornado/BitTornado/BT1/makemetafile.py centraluploader(Download)
from sys import getfilesystemencoding
ENCODING = getfilesystemencoding()
except:
from sys import getdefaultencoding
ENCODING = getdefaultencoding()
defaults = [
src/i/c/icamp-HEAD/FFStore/html/TF_BitTornado/BitTornado/BT1/makemetafile.py icamp(Download)
from sys import getfilesystemencoding
ENCODING = getfilesystemencoding()
except:
from sys import getdefaultencoding
ENCODING = getdefaultencoding()
defaults = [
src/m/e/meresco-HEAD/meresco-core/workingsets/2.22.9-EduRep/version_8/merescocore/__init__.py meresco(Download)
# ## end license ## from sys import getdefaultencoding as _getdefaultencoding from locale import getdefaultlocale, _parse_localename assert _getdefaultencoding() == 'utf-8', 'Please ensure that de default encoding is utf-8'
src/m/e/meresco-HEAD/meresco-core/workingsets/2.22.9-EduRep/version_7/merescocore/__init__.py meresco(Download)
# ## end license ## from sys import getdefaultencoding as _getdefaultencoding from locale import getdefaultlocale, _parse_localename assert _getdefaultencoding() == 'utf-8', 'Please ensure that de default encoding is utf-8'
src/m/e/meresco-HEAD/meresco-core/workingsets/2.22.9-EduRep/version_6/merescocore/__init__.py meresco(Download)
# ## end license ## from sys import getdefaultencoding as _getdefaultencoding from locale import getdefaultlocale, _parse_localename assert _getdefaultencoding() == 'utf-8', 'Please ensure that de default encoding is utf-8'
1 | 2 | 3 Next