aboutsummaryrefslogtreecommitdiffstats
path: root/test_dotfiles.py
diff options
context:
space:
mode:
authorGravatar Daniel Harding <dharding@gmail.com> 2012-03-08 13:10:55 +0000
committerGravatar Daniel Harding <dharding@gmail.com> 2012-03-08 13:10:55 +0000
commit3d10f1522f66ec841d770f9126e737b21f9b9973 (patch)
treeb6179e10142ba786b4d70afb444a503b542f8693 /test_dotfiles.py
parent58da9a469d4553dad6c617b730d0bdff032e793b (diff)
downloaddotfiles-3d10f1522f66ec841d770f9126e737b21f9b9973.tar.gz
dotfiles-3d10f1522f66ec841d770f9126e737b21f9b9973.tar.bz2
dotfiles-3d10f1522f66ec841d770f9126e737b21f9b9973.zip
Make source compatible with Python 3
Replaced a few Python 2-only idioms with equivalents that work in both Python 2 and Python 3.
Diffstat (limited to 'test_dotfiles.py')
-rwxr-xr-xtest_dotfiles.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test_dotfiles.py b/test_dotfiles.py
index 8ee3a76..b892003 100755
--- a/test_dotfiles.py
+++ b/test_dotfiles.py
@@ -12,7 +12,7 @@ from dotfiles import core
def touch(fname, times=None):
- with file(fname, 'a'):
+ with open(fname, 'a'):
os.utime(fname, times)