mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-05 14:51:13 +02:00
Use pyupgrade with --py36-plus param.
This commit is contained in:
1 parent
a9eb035b7d
commit
f928738bd5
235 files changed
+1501
-1638
No files matched your search
@@ -96,7 +96,7 @@ class Drawing:
|
||||
try:
|
||||
root = ET.fromstring(value)
|
||||
except ET.ParseError as e:
|
||||
log.error("Can't parse SVG: {}".format(e))
|
||||
log.error(f"Can't parse SVG: {e}")
|
||||
return
|
||||
# SVG is the default namespace no need to prefix it
|
||||
ET.register_namespace('xmlns', "http://www.w3.org/2000/svg")
|
||||
@@ -222,4 +222,4 @@ class Drawing:
|
||||
}
|
||||
|
||||
def __repr__(self):
|
||||
return "<gns3server.controller.Drawing {}>".format(self._id)
|
||||
return f"<gns3server.controller.Drawing {self._id}>"
|
||||
Reference in new issue
Block a user