]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/db/utils.py
use SP-GIST index for building index where available
[nominatim.git] / nominatim / db / utils.py
index 4d4305e7d67ff74c93119bbc67ef4acfa7036e2c..bb7faa25767f2a55066494a448a3fc00aa5b6025 100644 (file)
@@ -61,9 +61,10 @@ def execute_file(dsn, fname, ignore_errors=False, pre_code=None, post_code=None)
 
 
 # List of characters that need to be quoted for the copy command.
-_SQL_TRANSLATION = {ord(u'\\') : u'\\\\',
-                    ord(u'\t') : u'\\t',
-                    ord(u'\n') : u'\\n'}
+_SQL_TRANSLATION = {ord(u'\\'): u'\\\\',
+                    ord(u'\t'): u'\\t',
+                    ord(u'\n'): u'\\n'}
+
 
 class CopyBuffer:
     """ Data collector for the copy_from command.