mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Later: Use open() instead of file().
This commit is contained in:
parent
0b49c7312f
commit
1be1ddb386
@ -68,7 +68,7 @@ class Later(callbacks.Plugin):
|
|||||||
|
|
||||||
def _openNotes(self):
|
def _openNotes(self):
|
||||||
try:
|
try:
|
||||||
fd = file(self.filename)
|
fd = open(self.filename)
|
||||||
except EnvironmentError, e:
|
except EnvironmentError, e:
|
||||||
self.log.warning('Couldn\'t open %s: %s', self.filename, e)
|
self.log.warning('Couldn\'t open %s: %s', self.filename, e)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user