From 32c84cc86ef9297ed91417731fcc283cd97dfa26 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Mon, 2 Feb 2015 19:51:45 +0100 Subject: [PATCH] style fix --- vdirsyncer/utils/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vdirsyncer/utils/__init__.py b/vdirsyncer/utils/__init__.py index 269c50a..1e7621d 100644 --- a/vdirsyncer/utils/__init__.py +++ b/vdirsyncer/utils/__init__.py @@ -302,7 +302,7 @@ def checkfile(path, create=False): if os.path.exists(path): raise IOError('{} is not a file.'.format(path)) if create: - with open(path, 'wb') as f: + with open(path, 'wb'): pass else: raise exceptions.CollectionNotFound('File {} does not exist.'