Remove outdated unicode literals

This commit is contained in:
Rotzbua 2023-01-13 15:32:33 +01:00 committed by Florian Festi
parent 6fac72bebd
commit 631ff35f80
4 changed files with 5 additions and 5 deletions

View File

@ -67,8 +67,8 @@ def getDescriptions():
d['O'] = d['o'] + ' (other end)'
d['P'] = d['p'] + ' (other end)'
d['U'] = d['u'] + ' top side'
d['v'] = d['u'] + u' for 90° lid'
d['V'] = d['u'] + u' 90° lid'
d['v'] = d['u'] + ' for 90° lid'
d['V'] = d['u'] + ' 90° lid'
return d

View File

@ -73,7 +73,7 @@ class OrganPipe(Boxes): # Change class name!
help="Cutup to mouth ratio")
self.argparser.add_argument(
"--mensur", action="store", type=int, default=0,
help=u"Distance in halftones in the Normalmensur by Töpfer")
help="Distance in halftones in the Normalmensur by Töpfer")
self.argparser.add_argument(
"--windpressure", action="store", type=float, default=588.4,
help="uses unit selected below")

View File

@ -37,7 +37,7 @@ class ShadyEdge(edges.BaseEdge):
class TrafficLight(Boxes): # change class name here and below
"""Traffic light"""
description = u"""The traffic light was created to visualize the status of a Icinga monitored system.
description = """The traffic light was created to visualize the status of a Icinga monitored system.
When turned by 90°, it can be also used to create a bottle holder."""

View File

@ -409,7 +409,7 @@ f""" </script>{self.scripts % len(self.groups)}
</head>
<body>
<h1>{_("An error occurred!")}</h1>""" +
"".join(u"<p>%s</p>" % html.escape(s) for s in type(u"")(e).split(u"\n")) +
"".join("<p>%s</p>" % html.escape(s) for s in str(e).split("\n")) +
"""
</body>
</html>