python 3 compatibility: dict usage
Remove usage of .keys(), .has_key(), and .iteritems(), and account for the fact that .values() produces an iterator in Python 3.
Showing
- docs/user_docs/source/rest.rst 1 addition, 1 deletiondocs/user_docs/source/rest.rst
- gracedb/api/exceptions.py 2 additions, 1 deletiongracedb/api/exceptions.py
- gracedb/api/v1/events/views.py 7 additions, 6 deletionsgracedb/api/v1/events/views.py
- gracedb/api/v1/fields.py 2 additions, 2 deletionsgracedb/api/v1/fields.py
- gracedb/api/v1/main/tests/test_views.py 1 addition, 1 deletiongracedb/api/v1/main/tests/test_views.py
- gracedb/api/v1/superevents/filters.py 1 addition, 1 deletiongracedb/api/v1/superevents/filters.py
- gracedb/api/v1/superevents/tests/test_serializers.py 6 additions, 6 deletionsgracedb/api/v1/superevents/tests/test_serializers.py
- gracedb/core/forms.py 2 additions, 2 deletionsgracedb/core/forms.py
- gracedb/core/middleware/proxy.py 1 addition, 1 deletiongracedb/core/middleware/proxy.py
- gracedb/events/buildVOEvent.py 1 addition, 1 deletiongracedb/events/buildVOEvent.py
- gracedb/events/migrations/0011_add_O2VirgoTest_search.py 1 addition, 1 deletiongracedb/events/migrations/0011_add_O2VirgoTest_search.py
- gracedb/events/models.py 2 additions, 2 deletionsgracedb/events/models.py
- gracedb/events/serialize.py 3 additions, 3 deletionsgracedb/events/serialize.py
- gracedb/events/tests/test_perms.py 1 addition, 1 deletiongracedb/events/tests/test_perms.py
- gracedb/events/view_logic.py 5 additions, 5 deletionsgracedb/events/view_logic.py
- gracedb/ligoauth/migrations/0005_update_emfollow_accounts.py 2 additions, 2 deletionsgracedb/ligoauth/migrations/0005_update_emfollow_accounts.py
- gracedb/ligoauth/migrations/0019_update_idq_certs.py 2 additions, 2 deletionsgracedb/ligoauth/migrations/0019_update_idq_certs.py
- gracedb/ligoauth/tests/test_backends.py 2 additions, 2 deletionsgracedb/ligoauth/tests/test_backends.py
- gracedb/migrations/auth/0016_create_access_and_superevent_groups.py 1 addition, 1 deletion...grations/auth/0016_create_access_and_superevent_groups.py
- gracedb/migrations/auth/0017_assign_permissions.py 2 additions, 2 deletionsgracedb/migrations/auth/0017_assign_permissions.py
Loading
Please register or sign in to comment