@@ -145,15 +145,16 @@ def on_action_about(self):
145145 dcor = "https://dcor.mpl.mpg.de"
146146 gh = "DCOR-dev/DCOR-Aid"
147147 rtd = "dc.readthedocs.io"
148- about_text = "This is the client for the <a href='{}'>" .format (dcor ) \
149- + "Deformability Cytometry Open Repository (DCOR)</a>.<br><br>" \
150- + "Author: Paul Müller<br>" \
151- + "GitHub: " \
152- + "<a href='https://github.com/{gh}'>{gh}</a><br>" .format (gh = gh ) \
153- + "Documentation: " \
154- + "<a href='https://{rtd}'>{rtd}</a><br>" .format (rtd = rtd )
148+ about_text = (
149+ f"This is the client for the <a href='{ dcor } '>"
150+ f"Deformability Cytometry Open Repository (DCOR)</a>.<br><br>"
151+ f"Author: Paul Müller<br>"
152+ f"GitHub: "
153+ f"<a href='https://github.com/{ gh } '>{ gh } </a><br>"
154+ f"Documentation: "
155+ f"<a href='https://{ rtd } '>{ rtd } </a><br>" )
155156 QtWidgets .QMessageBox .about (self ,
156- "DCOR-Aid {}" . format ( __version__ ) ,
157+ f "DCOR-Aid { __version__ } " ,
157158 about_text )
158159
159160 @QtCore .pyqtSlot (bool )
@@ -193,10 +194,10 @@ def on_action_check_update_finished(self, mdict):
193194 msg .setTextFormat (QtCore .Qt .TextFormat .RichText )
194195 text = f"You can install DCOR-Aid { ver } "
195196 if dlb is not None :
196- text += 'from a <a href="{}">direct download</a>. ' . format ( dlb )
197+ text += f 'from a <a href="{ dlb } ">direct download</a>. '
197198 else :
198199 text += 'by running `pip install --upgrade dcoraid`. '
199- text += 'Visit the <a href="{}">official release page</a>!' . format ( web )
200+ text += f 'Visit the <a href="{ web } ">official release page</a>!'
200201 msg .setText (text )
201202 msg .exec ()
202203
@@ -208,12 +209,12 @@ def on_action_software(self):
208209 requests_toolbelt ,
209210 urllib3 ,
210211 ]
211- sw_text = "DCOR-Aid {}\n \n " . format ( __version__ )
212- sw_text += "Python {}\n \n " . format ( sys . version )
212+ sw_text = f "DCOR-Aid { __version__ } \n \n "
213+ sw_text += f "Python { sys . version } \n \n "
213214 sw_text += "Modules:\n "
214215 for lib in libs :
215- sw_text += "- {} {} \n " . format ( lib .__name__ , lib .__version__ )
216- sw_text += "- PyQt6 {}\n " . format ( QtCore . QT_VERSION_STR )
216+ sw_text += f "- { lib .__name__ } { lib .__version__ } \n "
217+ sw_text += f "- PyQt6 { QtCore . QT_VERSION_STR } \n "
217218 sw_text += "\n Breeze icon theme by the KDE Community (LGPL)."
218219 sw_text += "\n Font-Awesome icons by Fort Awesome (CC BY 4.0)."
219220 if hasattr (sys , 'frozen' ):
@@ -263,8 +264,7 @@ def excepthook(etype, value, trace):
263264 prints the standard Python header: ``Traceback (most recent
264265 call last)``.
265266 """
266- vinfo = "Unhandled exception in DCOR-Aid version {}:\n " .format (
267- __version__ )
267+ vinfo = f"Unhandled exception in DCOR-Aid version { __version__ } :\n "
268268 tmp = tb .format_exception (etype , value , trace )
269269 exception = "" .join ([vinfo ] + tmp )
270270
0 commit comments