X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=blobdiff_plain;f=svn.py;h=68d60457ee677709910860ec787a51cd492e18ff;hp=4fe8cbc243404c0fa48557359539486d7ec5440e;hb=8048d7086658ef4eedb99a740181d9563db5987c;hpb=4ece242d0bc94f8257613d911de60111292d5a5b;ds=sidebyside 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 +