Use .get instead of .pop

This commit is contained in:
Joar Wandborg 2017-11-07 10:34:17 +01:00
parent f128ed5b1f
commit e70535e8d7

View File

@ -223,7 +223,7 @@ class Blueprint:
name = '{}.{}'.format(self.name, name) name = '{}.{}'.format(self.name, name)
kwargs.update(name=name) kwargs.update(name=name)
strict_slashes = kwargs.pop('strict_slashes', None) strict_slashes = kwargs.get('strict_slashes')
if strict_slashes is None and self.strict_slashes is not None: if strict_slashes is None and self.strict_slashes is not None:
kwargs.update(strict_slashes=self.strict_slashes) kwargs.update(strict_slashes=self.strict_slashes)