[Demi-commits] r77 - lib

John Morrissey jwm-guest at costa.debian.org
Mon Feb 13 21:30:03 UTC 2006


Author: jwm-guest
Date: 2006-02-13 21:30:02 +0000 (Mon, 13 Feb 2006)
New Revision: 77

Modified:
   lib/machine.py
Log:
reverse the order, make this check:
  if line == "" or line[0] == "#":
since line[0] obviously won't exist if the line is empty


Modified: lib/machine.py
===================================================================
--- lib/machine.py	2006-02-08 01:37:12 UTC (rev 76)
+++ lib/machine.py	2006-02-13 21:30:02 UTC (rev 77)
@@ -233,7 +233,7 @@
 		newSources = []
 		for line in command.output:
 			line = strip(line)
-			if line[0] == "#" or line == "":
+			if line == "" or line[0] == "#":
 				continue
 
 			fields = split(line)




More information about the Demi-commits mailing list