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:
Thomas Goirand 2015-07-15 11:21:04 +02:00 committed by Matt Riedemann
parent 8252703f56
commit fb55b01a9a

View File

@ -13,13 +13,9 @@ log = logging.getLogger(__name__)
def usage():
"""Gives usage information."""
print """Usage: %(prog)s repository-to-migrate
Upgrade your repository to the new flat format.
NOTE: You should probably make a backup before running this.
""" % {'prog': sys.argv[0]}
print("Usage: %s repository-to-migrate" % sys.argv[0])
print("Upgrade your repository to the new flat format.")
print("NOTE: You should probably make a backup before running this.")
sys.exit(1)