mirror of
git://git.yoctoproject.org/meta-selinux
synced 2026-01-01 13:58:04 +00:00
Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
27 lines
610 B
Python
27 lines
610 B
Python
# OpenEmbedded sitecustomize.py (C) 2002-2008 Michael 'Mickey' Lauer <mlauer@vanille-media.de>
|
|
# GPLv2 or later
|
|
# Version: 20081123
|
|
# Features:
|
|
# * set proper default encoding
|
|
# Features removed for SELinux:
|
|
# * enable readline completion in the interactive interpreter
|
|
# * load command line history on startup
|
|
# * save command line history on exit
|
|
|
|
import os
|
|
|
|
def __enableDefaultEncoding():
|
|
import sys
|
|
try:
|
|
sys.setdefaultencoding( "utf8" )
|
|
except LookupError:
|
|
pass
|
|
|
|
import sys
|
|
try:
|
|
import rlcompleter, readline
|
|
except ImportError:
|
|
pass
|
|
else:
|
|
__enableDefaultEncoding()
|