From 6bab1dab75609421008d492a330f21c5644c0f8e Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Wed, 5 Aug 2015 22:04:21 +0200 Subject: [PATCH] simplify HostRsync constructor --- xdist/slavemanage.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/xdist/slavemanage.py b/xdist/slavemanage.py index 0ba0d4e..4f1649d 100644 --- a/xdist/slavemanage.py +++ b/xdist/slavemanage.py @@ -144,10 +144,7 @@ class HostRSync(execnet.RSync): """ def __init__(self, sourcedir, *args, **kwargs): self._synced = {} - ignores= None - if 'ignores' in kwargs: - ignores = kwargs.pop('ignores') - self._ignores = ignores or [] + self._ignores = kwargs.pop('ignores', None) or [] super(HostRSync, self).__init__(sourcedir=sourcedir, **kwargs) def filter(self, path):