[packages/calibre] - avoid referencing possibly undefined variable

baggins baggins at pld-linux.org
Sat Oct 18 20:37:44 CEST 2014


commit 8deb663eb9cbafd0d29b9dd8f092ed2f6e358a5b
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Oct 18 20:37:23 2014 +0200

    - avoid referencing possibly undefined variable

 calibre-locales.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/calibre-locales.patch b/calibre-locales.patch
index 4de67c3..698ac39 100644
--- a/calibre-locales.patch
+++ b/calibre-locales.patch
@@ -128,9 +128,9 @@
 +        if mpath is not None:
 +            try:
 +                buf = open(os.path.join(mpath, 'calibre.mo'), 'rb')
++                yield lang, GNUTranslations(buf)
 +            except:
 +                pass
-+            yield lang, GNUTranslations(buf)
  
  lcdata = {
      u'abday': (u'Sun', u'Mon', u'Tue', u'Wed', u'Thu', u'Fri', u'Sat'),
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/calibre.git/commitdiff/8deb663eb9cbafd0d29b9dd8f092ed2f6e358a5b



More information about the pld-cvs-commit mailing list