diff options
author | Guido Günther <agx@sigxcpu.org> | 2017-01-10 19:24:58 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2017-01-11 10:53:43 +0100 |
commit | 21c89cae6918d548f9ed7883f9a12b742c414497 (patch) | |
tree | 91ac205382bc78663dea56d5a8489ebcb7583bd9 | |
parent | eca2ffe8dfe1349e835b4edd359cead1be666ede (diff) |
UpstreamSource: don't use empty list as default argument
since we want to avoid the same list being reused
-rw-r--r-- | gbp/pkg/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gbp/pkg/__init__.py b/gbp/pkg/__init__.py index 75975b1c..70bcb21e 100644 --- a/gbp/pkg/__init__.py +++ b/gbp/pkg/__init__.py @@ -309,7 +309,7 @@ class UpstreamSource(object): def path(self): return self._path.rstrip('/') - def unpack(self, dir, filters=[]): + def unpack(self, dir, filters=None): """ Unpack packed upstream sources into a given directory (filtering out files specified by filters) and determine the @@ -368,7 +368,7 @@ class UpstreamSource(object): # unpackArchive already printed an error message raise GbpError - def pack(self, newarchive, filters=[]): + def pack(self, newarchive, filters=None): """ Recreate a new archive from the current one |