--- a/tests/svn-safe-append.py Mon Mar 05 15:07:32 2018 -0500
+++ b/tests/svn-safe-append.py Mon Mar 05 12:30:20 2018 -0500
@@ -6,6 +6,7 @@
Without this svn will not detect workspace changes."""
import os
+import stat
import sys
text = sys.argv[1]
@@ -13,16 +14,15 @@
f = open(fname, "ab")
try:
- before = os.fstat(f.fileno()).st_mtime
+ before = os.fstat(f.fileno())[stat.ST_MTIME]
f.write(text)
f.write("\n")
finally:
f.close()
inc = 1
-now = os.stat(fname).st_mtime
+now = os.stat(fname)[stat.ST_MTIME]
while now == before:
t = now + inc
inc += 1
os.utime(fname, (t, t))
- now = os.stat(fname).st_mtime
-
+ now = os.stat(fname)[stat.ST_MTIME]