1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-08 16:53:23 +00:00

Default path_transformer=None. Fixes #199

This commit is contained in:
Aron Griffis
2015-08-28 07:25:03 -04:00
parent 083b1ec686
commit 0eda8ba482
5 changed files with 35 additions and 5 deletions

View File

@@ -81,8 +81,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