comparison tests/svn-safe-append.py @ 29195:bdba6a2015d0

py3: make tests/svn-safe-append.py use absolute_import
author Pulkit Goyal <7895pulkit@gmail.com>
date Mon, 16 May 2016 04:31:20 +0530
parents c1b47c0fd2b6
children ffa3026d4196
comparison
equal deleted inserted replaced
29194:3bea82dd4c4e 29195:bdba6a2015d0
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2
3 from __future__ import absolute_import
2 4
3 __doc__ = """Same as `echo a >> b`, but ensures a changed mtime of b. 5 __doc__ = """Same as `echo a >> b`, but ensures a changed mtime of b.
4 Without this svn will not detect workspace changes.""" 6 Without this svn will not detect workspace changes."""
5 7
6 import sys, os 8 import os
9 import sys
7 10
8 text = sys.argv[1] 11 text = sys.argv[1]
9 fname = sys.argv[2] 12 fname = sys.argv[2]
10 13
11 f = open(fname, "ab") 14 f = open(fname, "ab")