From df92332c699815c3e814abdbd0828d8a32cdbc94 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 7 Nov 2019 13:25:27 -0500 Subject: [PATCH] Revert "Don't use format strings, for compatability with Python 3.5 :(" This reverts commit 96c34c95f3914416e56cdbe8fff5b54a998c34c8. --- hid/DoorController.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hid/DoorController.py b/hid/DoorController.py index f03c7c4..fb34591 100644 --- a/hid/DoorController.py +++ b/hid/DoorController.py @@ -16,8 +16,7 @@ fieldnames = "CardNumber,CardFormat,PinRequired,PinCode,ExtendedAccess,ExpiryDat class RemoteError(Exception): def __init__(self, r): super().__init__( - "Door Updating Error: {} {}\n{}" - .format(r.status_code, r.reason, r.text)) + f"Door Updating Error: {r.status_code} {r.reason}\n{r.text}") class DoorController(): def __init__(self, ip, username, password, name="", access=""):