From 44471a28178f0100ad190606f5148af0aebe755a Mon Sep 17 00:00:00 2001 From: Lagicrus Date: Fri, 20 Jul 2018 13:19:08 +0100 Subject: [PATCH] Fix reduce In Python 3, reduce is nolonger part of the builtin functions and has instead been moved to functools hence breaking this code. I added in a line of code so this works again in Python 3 --- recipes/Python/577879_Create_nested_dictionary/recipe-577879.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes/Python/577879_Create_nested_dictionary/recipe-577879.py b/recipes/Python/577879_Create_nested_dictionary/recipe-577879.py index 3e6c4efb9..99bdfdb5e 100644 --- a/recipes/Python/577879_Create_nested_dictionary/recipe-577879.py +++ b/recipes/Python/577879_Create_nested_dictionary/recipe-577879.py @@ -1,4 +1,6 @@ import os +from functools import reduce + def get_directory_structure(rootdir): """