cleanup: Redundante import copy-Aufrufe in message_handler.py #6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
copywird inmodules/message_handler.pybereits auf Modulebene (Zeile 11) importiert, aber in drei Funktionen wird es erneut importiert:Datei:
modules/message_handler.pyhandle_contact_message()– redundanthandle_raw_data()– redundanthandle_channel_message()– redundantBetroffener Code
Fix
Die drei
import copy-Zeilen innerhalb der Funktionen entfernen. Das Modulebene-Import auf Zeile 11 reicht vollständig aus.