Skip to content

Commit

Permalink
5.7.0 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
pipermerriam committed Jul 22, 2016
1 parent 5f99682 commit f4f82ed
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
5.7.0
-----

- Bugfix: Workaround for operator.attrgetter and operator.itemgetter
https://bugs.python.org/issue26822

5.6.0
-----

Expand Down
2 changes: 1 addition & 1 deletion flex/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
VERSION = '5.6.0'
VERSION = '5.7.0'

from flex.core import load # NOQA
8 changes: 8 additions & 0 deletions flex/functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,17 @@ def apply_functions_to_key(key, *funcs):


def attrgetter(attr):
"""
Upstream bug in python:
https://bugs.python.org/issue26822
"""
return lambda obj, **kwargs: getattr(obj, attr)


def methodcaller(name, *args):
"""
Upstream bug in python:
https://bugs.python.org/issue26822
"""
func = operator.methodcaller(name, *args)
return lambda obj, **kwargs: func(obj)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
except ImportError:
from distutils.core import setup, find_packages

version = '5.6.0'
version = '5.7.0'

readme = open(os.path.join(DIR, 'README.md')).read()

Expand Down

0 comments on commit f4f82ed

Please sign in to comment.