From 569264d9f9bdaf4497c84658a83e307587bd7d68 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Sat, 1 Aug 2015 09:14:01 -0700 Subject: Cleanup and update to newer pyexiv2 --- exifilm.py | 36 ++++++++++++++++++------------------ printrecord.py | 14 +++++++------- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/exifilm.py b/exifilm.py index 17db62d..2041ec9 100644 --- a/exifilm.py +++ b/exifilm.py @@ -68,7 +68,7 @@ PRIVATE_KEYS = [ ] ISO_RE = re.compile(r'\d\d+') - + def to_rational(v): if '/' in v: n,d = v.split('/') @@ -150,9 +150,9 @@ class ExiFilm(object): self.comments_text = self.xml.get_widget('comments') self.comments_buffer = gtk.TextBuffer() self.comments_text.set_buffer(self.comments_buffer) - + # Keep the last selected date to provide a sane default - self.lastdate = None + self.lastdate = None dic = { 'on_main_window_destroy': self.window_closed, @@ -201,36 +201,36 @@ class ExiFilm(object): if i>0: self.file_combo.set_active(i-1) return True - + if data.keyval == gtk.keysyms.Page_Down: i = self.file_combo.get_active() if i