X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=blobdiff_plain;f=svn.py;h=68d60457ee677709910860ec787a51cd492e18ff;hp=4fe8cbc243404c0fa48557359539486d7ec5440e;hb=389cb33239dcab322519cea1163e6e9c8f6ed5a3;hpb=4ece242d0bc94f8257613d911de60111292d5a5b diff --git a/svn.py b/svn.py index 4fe8cbc2..68d60457 100644 --- a/svn.py +++ b/svn.py @@ -8,7 +8,9 @@ def getRevision(path): line = cmd.readline() if line == "": raise Exception("failed to obtain revision number") - if line.startswith("Revision: "): - revision = int(line[10:]) - return revision - \ No newline at end of file + for word in line.split(): + try: + return int(word) + except: + pass +