diff options
author | zsloan | 2020-11-03 15:20:05 -0600 |
---|---|---|
committer | zsloan | 2020-11-03 15:20:05 -0600 |
commit | 96b095aa83ed113250442e4c6f180c7dd66d3e0e (patch) | |
tree | dd6333496e63a3f67f06f2fa987f2f05efc53e1f /wqflask/base/GeneralObject.py | |
parent | 5e08316b491a6225eddbc27cfdd799cff1bc0283 (diff) | |
download | genenetwork2-96b095aa83ed113250442e4c6f180c7dd66d3e0e.tar.gz |
Changed the syntax for the "sort" function in the docstring of GeneralObject to be compatible with Python 3 syntax
* wqflask/base/GeneralObject.py - edited docstring to be correct for Python 3
Diffstat (limited to 'wqflask/base/GeneralObject.py')
-rw-r--r-- | wqflask/base/GeneralObject.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/base/GeneralObject.py b/wqflask/base/GeneralObject.py index 0122ee32..249195e2 100644 --- a/wqflask/base/GeneralObject.py +++ b/wqflask/base/GeneralObject.py @@ -28,7 +28,7 @@ class GeneralObject: """ Base class to define an Object. a = [Spam(1, 4), Spam(9, 3), Spam(4,6)] - a.sort(lambda x, y: cmp(x.eggs, y.eggs)) + a.sort(key = lambda x: x.eggs) """ def __init__(self, *args, **kw): |