diff options
| -rw-r--r-- | scripts/lib/wic/msger.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/scripts/lib/wic/msger.py b/scripts/lib/wic/msger.py index 2340ac2f10..4d8e704172 100644 --- a/scripts/lib/wic/msger.py +++ b/scripts/lib/wic/msger.py | |||
| @@ -66,10 +66,6 @@ def _general_print(head, color, msg=None, stream=None, level='normal'): | |||
| 66 | # skip | 66 | # skip |
| 67 | return | 67 | return |
| 68 | 68 | ||
| 69 | # encode raw 'unicode' str to utf8 encoded str | ||
| 70 | if msg and isinstance(msg, unicode): | ||
| 71 | msg = msg.encode('utf-8', 'ignore') | ||
| 72 | |||
| 73 | errormsg = '' | 69 | errormsg = '' |
| 74 | if CATCHERR_BUFFILE_FD > 0: | 70 | if CATCHERR_BUFFILE_FD > 0: |
| 75 | size = os.lseek(CATCHERR_BUFFILE_FD, 0, os.SEEK_END) | 71 | size = os.lseek(CATCHERR_BUFFILE_FD, 0, os.SEEK_END) |
| @@ -118,9 +114,6 @@ def _color_print(head, color, msg, stream, level): | |||
| 118 | newline = True | 114 | newline = True |
| 119 | 115 | ||
| 120 | if msg is not None: | 116 | if msg is not None: |
| 121 | if isinstance(msg, unicode): | ||
| 122 | msg = msg.encode('utf8', 'ignore') | ||
| 123 | |||
| 124 | stream.write('%s%s' % (head, msg)) | 117 | stream.write('%s%s' % (head, msg)) |
| 125 | if newline: | 118 | if newline: |
| 126 | stream.write('\n') | 119 | stream.write('\n') |
