mirror of
https://github.com/coleifer/peewee.git
synced 2026-05-06 07:56:41 -04:00
Ensure backslashes are escaped properly in db filename (pwiz)
Fixes #2994, #2995
This commit is contained in:
@@ -61,7 +61,7 @@ def print_models(introspector, tables=None, preserve_order=False,
|
||||
header = HEADER % (
|
||||
introspector.get_additional_imports(),
|
||||
introspector.get_database_class().__name__,
|
||||
introspector.get_database_name(),
|
||||
introspector.get_database_name().replace('\\', '\\\\'),
|
||||
', **%s' % repr(db_kwargs) if db_kwargs else '')
|
||||
print_(header)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user