File 0001-Fix-typo-in-logger.warning-call.patch of Package python-openstackdocstheme

From 1b11962bd5a6652f784f816932a4fe60f12fc702 Mon Sep 17 00:00:00 2001
From: Corey Bryant <corey.bryant@canonical.com>
Date: Thu, 25 Jan 2018 14:08:30 -0500
Subject: [PATCH] Fix typo in logger.warning() call

Change-Id: I8f419c0393e33a23979587b72f2ca8acc6087e4c
Closes-Bug: #1745456
---
 openstackdocstheme/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/openstackdocstheme/__init__.py b/openstackdocstheme/__init__.py
index 20b0cbe..8a4d5fb 100644
--- a/openstackdocstheme/__init__.py
+++ b/openstackdocstheme/__init__.py
@@ -115,7 +115,7 @@ def _html_page_context(app, pagename, templatename, context, doctree):
                 ['git', 'rev-parse', 'HEAD'],
             ).decode('utf-8').strip()
         except Exception:
-            logger.warn('Cannot get gitsha from git repository.')
+            logger.warning('Cannot get gitsha from git repository.')
             _html_context_data['gitsha'] = 'unknown'
 
         doc_path = _get_doc_path(app)
-- 
2.14.3

openSUSE Build Service is sponsored by