-
- Downloads
Fix usages of dict() and list() with literal keywords (#3094)
Replace their usages with the literal versions, [] for lists, {} for dicts, etc. It's easier for others to read, looks nicer, and the interpreter will convert it into bytecode that is executed faster (special opcodes for the containers, instead of performing function calls).
Showing
- addressfield/fields.py 2 additions, 2 deletionsaddressfield/fields.py
- addressfield/widgets.py 3 additions, 3 deletionsaddressfield/widgets.py
- hypha/apply/activity/adapters/activity_feed.py 1 addition, 1 deletionhypha/apply/activity/adapters/activity_feed.py
- hypha/apply/activity/adapters/base.py 1 addition, 1 deletionhypha/apply/activity/adapters/base.py
- hypha/apply/activity/adapters/slack.py 2 additions, 2 deletionshypha/apply/activity/adapters/slack.py
- hypha/apply/activity/context_processors.py 1 addition, 1 deletionhypha/apply/activity/context_processors.py
- hypha/apply/activity/messaging.py 1 addition, 1 deletionhypha/apply/activity/messaging.py
- hypha/apply/activity/templatetags/activity_tags.py 1 addition, 1 deletionhypha/apply/activity/templatetags/activity_tags.py
- hypha/apply/api/v1/filters.py 3 additions, 3 deletionshypha/apply/api/v1/filters.py
- hypha/apply/api/v1/review/serializers.py 1 addition, 1 deletionhypha/apply/api/v1/review/serializers.py
- hypha/apply/determinations/forms.py 3 additions, 2 deletionshypha/apply/determinations/forms.py
- hypha/apply/determinations/models.py 3 additions, 3 deletionshypha/apply/determinations/models.py
- hypha/apply/determinations/tests/factories.py 1 addition, 1 deletionhypha/apply/determinations/tests/factories.py
- hypha/apply/determinations/views.py 1 addition, 6 deletionshypha/apply/determinations/views.py
- hypha/apply/funds/admin_helpers.py 2 additions, 2 deletionshypha/apply/funds/admin_helpers.py
- hypha/apply/funds/edit_handlers.py 1 addition, 1 deletionhypha/apply/funds/edit_handlers.py
- hypha/apply/funds/forms.py 1 addition, 1 deletionhypha/apply/funds/forms.py
- hypha/apply/funds/models/submissions.py 1 addition, 1 deletionhypha/apply/funds/models/submissions.py
- hypha/apply/funds/tables.py 3 additions, 3 deletionshypha/apply/funds/tables.py
- hypha/apply/funds/tests/factories/blocks.py 4 additions, 4 deletionshypha/apply/funds/tests/factories/blocks.py
Loading
Please register or sign in to comment