Restore compatibility with Python 2.6

Remove:
- dict comprehensions
- unittest.TestCase.assertRaises with only one argument
This commit is contained in:
Vincent Jacques
2012-06-01 19:05:02 +01:00
parent 9954a3fd1b
commit b3fce397c0
5 changed files with 27 additions and 25 deletions
@@ -1,4 +1,4 @@
{
key : {% if attribute.type.name != class.name %}{{ attribute.type.name }}.{% endif %}{{ attribute.type.name }}( self._requester, element, completed = False )
dict(
( key, {% if attribute.type.name != class.name %}{{ attribute.type.name }}.{% endif %}{{ attribute.type.name }}( self._requester, element, completed = False ) )
for key, element in attributes[ "{{ attribute.name }}" ].iteritems()
}
)