From 631ff35f803f1ca10c68fbb4d442222863cca2d1 Mon Sep 17 00:00:00 2001 From: Rotzbua Date: Fri, 13 Jan 2023 15:32:33 +0100 Subject: [PATCH] Remove outdated unicode literals --- boxes/edges.py | 4 ++-- boxes/generators/organpipe.py | 2 +- boxes/generators/trafficlight.py | 2 +- scripts/boxesserver | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/boxes/edges.py b/boxes/edges.py index 400efb3..4242651 100644 --- a/boxes/edges.py +++ b/boxes/edges.py @@ -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 diff --git a/boxes/generators/organpipe.py b/boxes/generators/organpipe.py index f9c4f74..4ca0e19 100644 --- a/boxes/generators/organpipe.py +++ b/boxes/generators/organpipe.py @@ -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") diff --git a/boxes/generators/trafficlight.py b/boxes/generators/trafficlight.py index 8458172..378d2cb 100644 --- a/boxes/generators/trafficlight.py +++ b/boxes/generators/trafficlight.py @@ -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.""" diff --git a/scripts/boxesserver b/scripts/boxesserver index ed8759e..7eaf01b 100755 --- a/scripts/boxesserver +++ b/scripts/boxesserver @@ -409,7 +409,7 @@ f""" {self.scripts % len(self.groups)}

{_("An error occurred!")}

""" + -"".join(u"

%s

" % html.escape(s) for s in type(u"")(e).split(u"\n")) + +"".join("

%s

" % html.escape(s) for s in str(e).split("\n")) + """