From 1be1ddb386c3c196d0aac7882a8efe2b2405f8bf Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sat, 4 Aug 2012 20:20:14 +0200 Subject: [PATCH] Later: Use open() instead of file(). --- plugins/Later/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Later/plugin.py b/plugins/Later/plugin.py index bd118043c..858ab815e 100644 --- a/plugins/Later/plugin.py +++ b/plugins/Later/plugin.py @@ -68,7 +68,7 @@ class Later(callbacks.Plugin): def _openNotes(self): try: - fd = file(self.filename) + fd = open(self.filename) except EnvironmentError, e: self.log.warning('Couldn\'t open %s: %s', self.filename, e) return