diff options
Diffstat (limited to 'meta/recipes-devtools/python/python/sitecustomize.py')
-rw-r--r-- | meta/recipes-devtools/python/python/sitecustomize.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/meta/recipes-devtools/python/python/sitecustomize.py b/meta/recipes-devtools/python/python/sitecustomize.py index 273901898a..4c8b5e2ba3 100644 --- a/meta/recipes-devtools/python/python/sitecustomize.py +++ b/meta/recipes-devtools/python/python/sitecustomize.py | |||
@@ -27,19 +27,11 @@ def __enableReadlineSupport(): | |||
27 | except IOError: | 27 | except IOError: |
28 | pass | 28 | pass |
29 | 29 | ||
30 | def __enableDefaultEncoding(): | ||
31 | import sys | ||
32 | try: | ||
33 | sys.setdefaultencoding( "utf8" ) | ||
34 | except LookupError: | ||
35 | pass | ||
36 | |||
37 | import sys | 30 | import sys |
38 | try: | 31 | try: |
39 | import rlcompleter, readline | 32 | import rlcompleter, readline |
40 | except ImportError: | 33 | except ImportError: |
41 | pass | 34 | pass |
42 | else: | 35 | else: |
43 | __enableDefaultEncoding() | ||
44 | __registerExitHandler() | 36 | __registerExitHandler() |
45 | __enableReadlineSupport() | 37 | __enableReadlineSupport() |