diff --git a/CHANGES.txt b/CHANGES.txt index fdd1070..28a42c2 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,6 +1,9 @@ Changelog ========= +1.7.3 (2016-08-22) + Bugfix: initialize value of reduce in getRecordTypes + 1.7.2 (2015-12-21) Upgraded xmltramp to 2.18 with some inline patching. Experimenting with Travis-CI integration. diff --git a/setup.py b/setup.py index bf91885..c28a140 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup setup(name='pyforce', - version='1.7.2', # be sure to update the version in pyforce.py too + version='1.7.3', # be sure to update the version in pyforce.py too package_dir={'': 'src'}, packages=['pyforce'], author = "Simon Fell et al. reluctantly Forked by idbentley", diff --git a/src/pyforce/pyforce.py b/src/pyforce/pyforce.py index a444bb9..3836306 100644 --- a/src/pyforce/pyforce.py +++ b/src/pyforce/pyforce.py @@ -721,5 +721,5 @@ def getRecordTypes(xml): elif isQueryResult(field): record_types.update(reduce(lambda x, y: x | y, [ getRecordTypes(r) for r in - field[_tPartnerNS.records,]])) + field[_tPartnerNS.records,]], set())) return record_types