Edgewall Software
Modify

Opened 3 years ago

Closed 3 years ago

#13338 closed task (fixed)

Refactor uses of super

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)

Attachments (0)

Change History (2)

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.

comment:2 by Ryan J Ollos, 3 years ago

Resolution: fixed
Status: assignedclosed

Changes committed in r17498.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Ryan J Ollos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.