diff options
author | Daniel Harding <dharding@gmail.com> | 2012-03-08 13:10:55 +0000 |
---|---|---|
committer | Daniel Harding <dharding@gmail.com> | 2012-03-08 13:10:55 +0000 |
commit | 3d10f1522f66ec841d770f9126e737b21f9b9973 (patch) | |
tree | b6179e10142ba786b4d70afb444a503b542f8693 /test_dotfiles.py | |
parent | 58da9a469d4553dad6c617b730d0bdff032e793b (diff) | |
download | dotfiles-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-x | test_dotfiles.py | 2 |
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) |