Skip to content

Commit 0dc4a59

Browse files
committed
fix Python 2.6 list() call on resource object
1 parent 960f885 commit 0dc4a59

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

redmine/resources.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ class _Resource(object):
5959
query_filter = None
6060

6161
_relations = {}
62+
__length_hint__ = None # fixes Python 2.6 list() call on resource object
6263

6364
def __init__(self, manager, attributes):
6465
"""Accepts manager instance object and resource attributes dict"""

0 commit comments

Comments
 (0)