]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - svn.py
- Disabled useless "deprecated" warnings when using stdc functions
[xonotic/netradiant.git] / svn.py
diff --git a/svn.py b/svn.py
index 4fe8cbc243404c0fa48557359539486d7ec5440e..68d60457ee677709910860ec787a51cd492e18ff 100644 (file)
--- 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
+