Formatting

This commit is contained in:
Manuel Ebert 2013-04-23 09:13:06 -07:00
parent 4528d9f612
commit 1417305c2e

View file

@ -31,6 +31,7 @@ except ImportError:
import plistlib import plistlib
import uuid import uuid
class Journal(object): class Journal(object):
def __init__(self, **kwargs): def __init__(self, **kwargs):
self.config = { self.config = {
@ -288,6 +289,7 @@ class Journal(object):
self.sort() self.sort()
return entry return entry
class DayOne(Journal): class DayOne(Journal):
"""A special Journal handling DayOne files""" """A special Journal handling DayOne files"""
def __init__(self, **kwargs): def __init__(self, **kwargs):
@ -314,7 +316,6 @@ class DayOne(Journal):
# we're returning the obvious. # we're returning the obvious.
return self.entries return self.entries
def write(self): def write(self):
"""Writes only the entries that have been modified into plist files.""" """Writes only the entries that have been modified into plist files."""
for entry in self.entries: for entry in self.entries:
@ -331,4 +332,3 @@ class DayOne(Journal):
'UUID': new_uuid 'UUID': new_uuid
} }
plistlib.writePlist(entry_plist, filename) plistlib.writePlist(entry_plist, filename)