[Python-modules-commits] [python-django-debug-toolbar] 06/08: sqlparse-downgrade.patch: Restore compatibility with sqlparse < 0.2.0 as Debian has 0.1.18.
Andrew Starr-Bochicchio
asb at moszumanska.debian.org
Sat Aug 20 17:34:04 UTC 2016
This is an automated email from the git hooks/post-receive script.
asb pushed a commit to branch master
in repository python-django-debug-toolbar.
commit 6fa31877ba7bbeeeba48aa5a932cc45f2ed94a1b
Author: Andrew Starr-Bochicchio <a.starr.b at gmail.com>
Date: Sat Aug 20 13:03:36 2016 -0400
sqlparse-downgrade.patch: Restore compatibility with sqlparse < 0.2.0 as Debian has 0.1.18.
---
debian/changelog | 2 ++
debian/control | 4 ++--
debian/patches/series | 1 +
debian/patches/sqlparse-downgrade.patch | 13 +++++++++++++
4 files changed, 18 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 6365f71..fc8584e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,6 +8,8 @@ python-django-debug-toolbar (1:1.5-1) UNRELEASED; urgency=medium
* Bump Standards-Version to 3.9.8, no changes.
* django-1.10-compat.patch: Make DebugToolarMiddleware compatible
with Django 1.10's MIDDLEWARE setting (Closes: #828664).
+ * sqlparse-downgrade.patch: Restore compatibility with
+ sqlparse < 0.2.0 as Debian has 0.1.18.
-- Ondřej Nový <novy at ondrej.org> Tue, 29 Mar 2016 21:59:22 +0200
diff --git a/debian/control b/debian/control
index d028e0c..8cf4c88 100644
--- a/debian/control
+++ b/debian/control
@@ -12,8 +12,8 @@ Build-Depends: debhelper (>= 9),
python-setuptools,
python3-setuptools,
python-sphinx (>= 1.0.7+dfsg-1~),
- python-sqlparse,
- python3-sqlparse
+ python-sqlparse (<< 0.2.0),
+ python3-sqlparse (<< 0.2.0)
Standards-Version: 3.9.8
XS-Testsuite: autopkgtest
X-Python-Version: >= 2.6
diff --git a/debian/patches/series b/debian/patches/series
index a6dd669..62b796b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
+sqlparse-downgrade.patch
django-1.10-compat.patch
diff --git a/debian/patches/sqlparse-downgrade.patch b/debian/patches/sqlparse-downgrade.patch
new file mode 100644
index 0000000..f44f4eb
--- /dev/null
+++ b/debian/patches/sqlparse-downgrade.patch
@@ -0,0 +1,13 @@
+Index: python-django-debug-toolbar/debug_toolbar/panels/sql/utils.py
+===================================================================
+--- python-django-debug-toolbar.orig/debug_toolbar/panels/sql/utils.py 2016-08-20 12:01:46.078848343 -0400
++++ python-django-debug-toolbar/debug_toolbar/panels/sql/utils.py 2016-08-20 12:50:33.792117342 -0400
+@@ -9,7 +9,7 @@
+
+ class BoldKeywordFilter:
+ """sqlparse filter to bold SQL keywords"""
+- def process(self, stream):
++ def process(self, stack, stream):
+ """Process the token stream"""
+ for token_type, value in stream:
+ is_keyword = token_type in T.Keyword
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-django-debug-toolbar.git
More information about the Python-modules-commits
mailing list