From d465c35e897f4562ea7b778d1ba3a41f64895875 Mon Sep 17 00:00:00 2001 From: Tyler Earnest Date: Fri, 5 May 2017 16:50:06 -0500 Subject: [PATCH] fixed inverted conditional --- pubs/content.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pubs/content.py b/pubs/content.py index f1320a9..f17bad4 100644 --- a/pubs/content.py +++ b/pubs/content.py @@ -51,9 +51,9 @@ def system_path(path): def _open(path, mode): if 'b' in mode: - return open(system_path(path), mode, encoding='utf-8') - else: return open(system_path(path), mode) + else: + return open(system_path(path), mode, encoding='utf-8') def check_file(path, fail=True):