diff options
Diffstat (limited to 'debian/patches/fix-space-before-keywords.patch')
-rw-r--r-- | debian/patches/fix-space-before-keywords.patch | 16 |
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 + |