summaryrefslogtreecommitdiff
path: root/debian/patches/fix-space-before-keywords.patch
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2013-11-17 17:25:01 -0500
committerMicah Anderson <micah@riseup.net>2013-11-17 17:25:01 -0500
commit79d16d72cd530acbee682ebee44d5b1d2010c661 (patch)
treed04b84f51e5023cc7382ec91674e2967ffb533c7 /debian/patches/fix-space-before-keywords.patch
initial import of debian package to build with autobuilderupstream
Diffstat (limited to 'debian/patches/fix-space-before-keywords.patch')
-rw-r--r--debian/patches/fix-space-before-keywords.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/patches/fix-space-before-keywords.patch b/debian/patches/fix-space-before-keywords.patch
new file mode 100644
index 0000000..0d44170
--- /dev/null
+++ b/debian/patches/fix-space-before-keywords.patch
@@ -0,0 +1,16 @@
+Description: Allow whitespace before keywords
+Author: Марк Коренберг <socketpair@gmail.com>
+
+Index: python-sqlite/sqlite/main.py
+===================================================================
+--- python-sqlite.orig/sqlite/main.py 2004-10-21 12:13:25.000000000 +0200
++++ python-sqlite/sqlite/main.py 2011-12-19 21:47:47.472609323 +0100
+@@ -233,7 +233,7 @@
+ if self.con.autocommit:
+ pass
+ else:
+- if not(self.con.inTransaction or SQL[:6].upper() in ("SELECT","VACUUM","DETACH")):
++ if not(self.con.inTransaction or SQL.lstrip()[:6].upper() in ("SELECT","VACUUM","DETACH")):
+ self.con._begin()
+ self.con.inTransaction = 1
+