Skip to content

Commit

Permalink
Avoid illegal concatenation on Python 3
Browse files Browse the repository at this point in the history
Because:
- On Python 3, a list and a dict_keys cannot be concatenated directly,
  yadda yadda.

Fixes #2058
  • Loading branch information
lunkwill42 committed Dec 16, 2019
1 parent 643d778 commit 377e9c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/nav/pgdump.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def main():
writeln("-- args: %r" % sys.argv)

pg_dump(STD_DUMP_ARGS + ["--schema-only"])
excluded = set(opts.exclude + opts.filters.keys())
excluded = set(opts.exclude).union(opts.filters.keys())
pg_dump(STD_DUMP_ARGS + ["--data-only"] +
["--exclude-table=%s" % tbl for tbl in excluded])

Expand Down

0 comments on commit 377e9c6

Please sign in to comment.