diff options
author | Guido Günther <agx@sigxcpu.org> | 2017-11-27 19:59:32 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2017-11-27 19:59:32 +0100 |
commit | 3add0410d6a1186d2e67b3d0209b6d9f3628cd43 (patch) | |
tree | 3b4c44b1bee3af53b2ed12f99029a9f9601b92d9 | |
parent | b1eba728d48985e64596acfe881b8e97578a5b3c (diff) |
ChangeLog: don't use lists as default arguments
Gbp-Dch: Ignore
-rw-r--r-- | gbp/deb/changelog.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gbp/deb/changelog.py b/gbp/deb/changelog.py index 1d499821..2b522016 100644 --- a/gbp/deb/changelog.py +++ b/gbp/deb/changelog.py @@ -230,7 +230,7 @@ class ChangeLog(object): @staticmethod def spawn_dch(msg=[], author=None, email=None, newversion=False, version=None, - release=False, distribution=None, dch_options=[]): + release=False, distribution=None, dch_options=None): """ Spawn dch @@ -271,7 +271,7 @@ class ChangeLog(object): if distribution: args.append("--distribution=%s" % distribution) - args.extend(dch_options) + args.extend(dch_options or []) args.append('--') if msg: args.append('[[[insert-git-dch-commit-message-here]]]') |