src/eric7/MicroPython/EthernetDialogs/EthernetController.py

branch
eric7
changeset 10167
0a62a4bf749c
parent 10153
ffe7432f716b
child 10230
1311cd5d117e
--- a/src/eric7/MicroPython/EthernetDialogs/EthernetController.py	Tue Aug 29 09:55:24 2023 +0200
+++ b/src/eric7/MicroPython/EthernetDialogs/EthernetController.py	Tue Aug 29 16:50:17 2023 +0200
@@ -100,9 +100,7 @@
 
         dlg = HostnameDialog(self.__mpy)
         hostname = (
-            dlg.getHostname()
-            if dlg.exec() == QDialog.DialogCode.Accepted
-            else ""
+            dlg.getHostname() if dlg.exec() == QDialog.DialogCode.Accepted else ""
         )
         self.__connectLan("dhcp", hostname)
 

eric ide

mercurial