Show More
@@ -59,6 +59,13 b' for key in list(os.environ.keys()):' | |||||
59 | bvalue = os.environ[key].encode('utf-8', 'surrogateescape') |
|
59 | bvalue = os.environ[key].encode('utf-8', 'surrogateescape') | |
60 | os.environ[bkey] = bvalue |
|
60 | os.environ[bkey] = bvalue | |
61 |
|
61 | |||
|
62 | origord = builtins.ord | |||
|
63 | def fakeord(char): | |||
|
64 | if isinstance(char, int): | |||
|
65 | return char | |||
|
66 | return origord(char) | |||
|
67 | builtins.ord = fakeord | |||
|
68 | ||||
62 | if __name__ == '__main__': |
|
69 | if __name__ == '__main__': | |
63 | import doctest |
|
70 | import doctest | |
64 | doctest.testmod() |
|
71 | doctest.testmod() |
General Comments 0
You need to be logged in to leave comments.
Login now