Fixes usage function for Py3
The usage function of migrate_repository.py isn't Python 3 compatible, and this hasn't be caught by unit tests. This patch fixes the function, so at least the file can be compiled in Py3. Change-Id: Ib9333e46e7526e82acde573d4b2046b2bf9a7ae0
This commit is contained in:
parent
8252703f56
commit
fb55b01a9a
@ -13,13 +13,9 @@ log = logging.getLogger(__name__)
|
|||||||
|
|
||||||
def usage():
|
def usage():
|
||||||
"""Gives usage information."""
|
"""Gives usage information."""
|
||||||
print """Usage: %(prog)s repository-to-migrate
|
print("Usage: %s repository-to-migrate" % sys.argv[0])
|
||||||
|
print("Upgrade your repository to the new flat format.")
|
||||||
Upgrade your repository to the new flat format.
|
print("NOTE: You should probably make a backup before running this.")
|
||||||
|
|
||||||
NOTE: You should probably make a backup before running this.
|
|
||||||
""" % {'prog': sys.argv[0]}
|
|
||||||
|
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user