]> git.openstreetmap.org Git - nominatim.git/blobdiff - nominatim/db/utils.py
remove redundant 'u' prefixes for unicode strings
[nominatim.git] / nominatim / db / utils.py
index 87b0545fc5ecba66a956219cfbf247e633c16eaf..7d58a6684ef5d11814a02d3d497b384c18538626 100644 (file)
@@ -67,9 +67,9 @@ 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('\\'): '\\\\',
+                    ord('\t'): '\\t',
+                    ord('\n'): '\\n'}
 
 
 class CopyBuffer: