diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-01-27 15:27:45 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-01-27 15:27:45 +0100 |
| commit | fe11acdf0f1527840cc171dc7ffead0fc001efdc (patch) | |
| tree | 0d8456d9d869992e244e25eb318f433858db699f /queries.py | |
| parent | 62b4d7df8178bf560e165e92b2242391ad3985d3 (diff) | |
| download | apigrabber-fe11acdf0f1527840cc171dc7ffead0fc001efdc.tar.gz apigrabber-fe11acdf0f1527840cc171dc7ffead0fc001efdc.zip | |
api: pgadmin writes BOM to sql scripts
Diffstat (limited to 'queries.py')
| -rw-r--r-- | queries.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -15,6 +15,6 @@ async def load_queries(path): # load from queries/ queryfiles = glob.glob(path + "/*.sql") for fp in queryfiles: - with open(fp, "r") as qfile: + with open(fp, "r", encoding="utf-8-sig") as qfile: name = os.path.splitext(os.path.basename(fp))[0] queries[name] = qfile.read() |
