From de382fdb0ce69d4a01c68d2080938cd65f9925b4 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Tue, 5 Jul 2016 23:06:01 -0700 Subject: [PATCH] fix typos ("log.warn" => "LOG.warning" => "log.warning") --- gramps/plugins/export/exportpkg.py | 2 +- gramps/plugins/lib/libcairodoc.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps/plugins/export/exportpkg.py b/gramps/plugins/export/exportpkg.py index f7cbfd55e..0d90b3c81 100644 --- a/gramps/plugins/export/exportpkg.py +++ b/gramps/plugins/export/exportpkg.py @@ -175,7 +175,7 @@ class PackageWriter: try: archive = tarfile.open(self.filename,'w:gz') except EnvironmentError as msg: - LOG.warning(str(msg)) + log.warning(str(msg)) self.user.notify_error(_('Failure writing %s') % self.filename, str(msg)) return 0 diff --git a/gramps/plugins/lib/libcairodoc.py b/gramps/plugins/lib/libcairodoc.py index 2e0c523d5..60b383ea6 100644 --- a/gramps/plugins/lib/libcairodoc.py +++ b/gramps/plugins/lib/libcairodoc.py @@ -1394,7 +1394,7 @@ class CairoDoc(BaseDoc, TextDoc, DrawDoc): elif fe[-1] != self.EXT: # NOTE: the warning will be bogus # if the EXT isn't properly overridden by derived class - LOG.warning(_( + log.warning(_( """Mismatch between selected extension %(ext)s and actual format. Writing to %(filename)s in format %(impliedext)s.""") % {'ext' : fe[-1],