From 3d10f1522f66ec841d770f9126e737b21f9b9973 Mon Sep 17 00:00:00 2001 From: Daniel Harding Date: Thu, 8 Mar 2012 13:10:55 +0000 Subject: Make source compatible with Python 3 Replaced a few Python 2-only idioms with equivalents that work in both Python 2 and Python 3. --- test_dotfiles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test_dotfiles.py') 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) -- cgit v1.2.3