Edgewall Software

Opened 3 years ago

Last modified 3 years ago

#13338 closed task

Refactor uses of super — at Version 1

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Milestone: 1.5.3
Component: general Version:
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Refactored uses of super for Python 3 simplified syntax.

Description (last modified by Ryan J Ollos)

Python 3 allows super without args for the case of single inheritance and a simple class hierarchy and MRO. We can refactor the codebase with changes like:

-        super(TicketFieldList, self).__init__(*args)
+        super().__init__(*args)

Change History (1)

comment:1 by Ryan J Ollos, 3 years ago

Description: modified (diff)
Internal Changes: modified (diff)

Proposed changed in [959ba16289/rjollos.git]. Search using git grep "super\([^\)]+\)" \*\.py.

Note: See TracTickets for help on using tickets.