diff roundup/rest.py @ 8226:54afcb9149eb

chore(lint): mark unused variables in assignment with leading _
author John Rouillard <rouilj@ieee.org>
date Thu, 19 Dec 2024 17:23:04 -0500
parents 818751637b77
children d03126f0c6c2
line wrap: on
line diff
--- a/roundup/rest.py	Thu Dec 19 11:41:51 2024 -0500
+++ b/roundup/rest.py	Thu Dec 19 17:23:04 2024 -0500
@@ -95,7 +95,7 @@
             code = 402  # nothing to pay, just a mark for debugging purpose
             data = 'Method under development'
         except:  # noqa: E722
-            exc, val, tb = sys.exc_info()
+            _exc, val, _tb = sys.exc_info()
             code = 400
             ts = time.ctime()
             if getattr(self.client.request, 'DEBUG_MODE', None):
@@ -295,12 +295,12 @@
         # check for a + in the sub-type
         if '+' in subtyp:
             # if it exists, determine if the subtype is a vendor-specific type
-            vnd, sep, extra = subtyp.partition('+')
+            vnd, _sep, extra = subtyp.partition('+')
             if vnd.startswith('vnd'):
                 # and then... if it ends in something like "-v1.1" parse the
                 # version out
                 if '-v' in vnd:
-                    vnd, sep, rest = vnd.rpartition('-v')
+                    vnd, _sep, rest = vnd.rpartition('-v')
                     if len(rest):
                         # add the version as a media param
                         try:

Roundup Issue Tracker: http://roundup-tracker.org/