mirror of
https://github.com/veekun/pokedex.git
synced 2024-08-20 18:16:34 +00:00
Little better CLI handling of Unicode in Py2
This commit is contained in:
parent
abf8e6372a
commit
ef03259e0f
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
# encoding: utf8
|
# encoding: utf8
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
||||||
|
import locale
|
||||||
from optparse import OptionParser
|
from optparse import OptionParser
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
@ -321,7 +322,7 @@ Dump options:
|
||||||
|
|
||||||
Additionally, load and dump accept a list of table names (possibly with
|
Additionally, load and dump accept a list of table names (possibly with
|
||||||
wildcards) and/or csv fileames as an argument list.
|
wildcards) and/or csv fileames as an argument list.
|
||||||
""".encode(sys.getdefaultencoding(), 'replace'))
|
""".encode(locale.getdefaultlocale()[1], 'replace'))
|
||||||
|
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue