forked from hans/Nominatim
remove redundant 'u' prefixes for unicode strings
This commit is contained in:
@@ -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.
|
# List of characters that need to be quoted for the copy command.
|
||||||
_SQL_TRANSLATION = {ord(u'\\'): u'\\\\',
|
_SQL_TRANSLATION = {ord('\\'): '\\\\',
|
||||||
ord(u'\t'): u'\\t',
|
ord('\t'): '\\t',
|
||||||
ord(u'\n'): u'\\n'}
|
ord('\n'): '\\n'}
|
||||||
|
|
||||||
|
|
||||||
class CopyBuffer:
|
class CopyBuffer:
|
||||||
|
|||||||
Reference in New Issue
Block a user