eliminate unicode usage at help
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/env python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
"""The migrate command-line tool."""
|
"""The migrate command-line tool."""
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
@@ -66,13 +67,13 @@ def main(argv=None, **kwargs):
|
|||||||
commands = list(api.__all__)
|
commands = list(api.__all__)
|
||||||
commands.sort()
|
commands.sort()
|
||||||
|
|
||||||
usage = u"""%%prog COMMAND ...
|
usage = """%%prog COMMAND ...
|
||||||
|
|
||||||
Available commands:
|
Available commands:
|
||||||
%s
|
%s
|
||||||
|
|
||||||
Enter "%%prog help COMMAND" for information on a particular command.
|
Enter "%%prog help COMMAND" for information on a particular command.
|
||||||
""" % '\n\t'.join([u"%s — %s" % (command.ljust(28), api.command_desc.get(command)) for command in commands])
|
""" % '\n\t'.join(["%s - %s" % (command.ljust(28), api.command_desc.get(command)) for command in commands])
|
||||||
|
|
||||||
parser = PassiveOptionParser(usage=usage)
|
parser = PassiveOptionParser(usage=usage)
|
||||||
parser.add_option("-d", "--debug",
|
parser.add_option("-d", "--debug",
|
||||||
|
Reference in New Issue
Block a user