[postr/postr-0-13] iptcinfo: Fix typos in class methods



commit 99e73e3e338f213eb5b9563c0a9ed60ffdaa4447
Author: Germán Poo-Caamaño <gpoo gnome org>
Date:   Mon Jul 7 09:16:20 2014 -0700

    iptcinfo: Fix typos in class methods

 src/iptcinfo.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/iptcinfo.py b/src/iptcinfo.py
index f7dc19d..aeb0b2f 100644
--- a/src/iptcinfo.py
+++ b/src/iptcinfo.py
@@ -972,7 +972,7 @@ class IPTCInfo(object):
     app0data = self.jpegSkipVariable(fh, app0data)
     if app0data is None:
       self.error = 'jpegSkipVariable failed'
-      self.log(error)
+      self.log(self.error)
       return None
 
     if ord(marker) == 0xe0 or not discardAppParts:
@@ -1186,7 +1186,7 @@ class IPTCInfo(object):
               tuple(map(ord, row) + [''.join(map(P, row))])
     return ered
 
-  def jpegDebugScan(filename):
+  def jpegDebugScan(self, filename):
     """Also very helpful when debugging."""
     assert isinstance(filename, basestring) and os.path.isfile(filename)
     fh = file(filename, 'wb')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]