Fix py3 compat

This commit is contained in:
Konsta Vesterinen
2014-02-06 11:08:39 +02:00
parent 566e168e77
commit 2e9397f5b4

View File

@@ -8,7 +8,7 @@ def getdotattr(obj, dot_path):
""" """
Allows dot-notated strings to be passed to `getattr` Allows dot-notated strings to be passed to `getattr`
""" """
return reduce(getattr, dot_path.split('.'), obj) return six.moves.reduce(getattr, dot_path.split('.'), obj)
class AttributeValueGenerator(object): class AttributeValueGenerator(object):