mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-08 16:53:23 +00:00
Merge pull request #201 from agriffis/path-transformer-default
Default path_transformer=None. Fixes #199
This commit is contained in:
@@ -83,8 +83,9 @@ def partition_dict(predicate, dictionary):
|
||||
def compose(*functions):
|
||||
def composed(incoming):
|
||||
res = incoming
|
||||
for function in functions[::-1]:
|
||||
res = function(res)
|
||||
for function in reversed(functions):
|
||||
if function:
|
||||
res = function(res)
|
||||
return res
|
||||
return composed
|
||||
|
||||
|
||||
Reference in New Issue
Block a user