X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Ftest%2F003%2Ftest.py;h=ce07c11811c362a5d85f6d1f42b6da0d9bc5f81d;hb=1847db5a5f81b438a5bd5e0fb4376fb31d3696db;hp=f8277f873e7a215f99f5894fc134786e7338a9cb;hpb=59fd5aa2a8be3b76dbc968429c457f096adfa472;p=dak.git diff --git a/dak/test/003/test.py b/dak/test/003/test.py index f8277f87..ce07c118 100755 --- a/dak/test/003/test.py +++ b/dak/test/003/test.py @@ -1,8 +1,7 @@ #!/usr/bin/env python # Check utils.parse_changes()'s for handling of multi-line fields -# Copyright (C) 2000 James Troup -# $Id: test.py,v 1.2 2002-10-16 02:47:32 troup Exp $ +# Copyright (C) 2000, 2006 James Troup # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -20,7 +19,7 @@ ################################################################################ -# The deal here is that for the first 6 months of katie's +# The deal here is that for the first 6 months of dak's # implementation it has been misparsing multi-line fields in .changes # files; specifically multi-line fields where there _is_ data on the # first line. So, for example: @@ -34,15 +33,15 @@ import os, sys -sys.path.append(os.path.abspath('../../')); +sys.path.append(os.path.abspath('../../')) import utils ################################################################################ def fail(message): - sys.stderr.write("%s\n" % (message)); - sys.exit(1); + sys.stderr.write("%s\n" % (message)) + sys.exit(1) ################################################################################ @@ -51,7 +50,7 @@ def main (): try: changes = utils.parse_changes('krb5_1.2.2-4_m68k.changes', 0) except utils.changes_parse_error_exc, line: - fail("parse_changes() returned an exception with error message `%s'." % (line)); + fail("parse_changes() returned an exception with error message `%s'." % (line)) o = changes.get("binary", "") if o != "": @@ -61,7 +60,7 @@ def main (): changes["binary"][j] = 1 if not changes["binary"].has_key("krb5-ftpd"): - fail("parse_changes() is broken; 'krb5-ftpd' is not in the Binary: dictionary."); + fail("parse_changes() is broken; 'krb5-ftpd' is not in the Binary: dictionary.") ################################################################################