Skip to content

Commit e34dc68

Browse files
committed
chore(lint): mark unused variables in assignment with leading _
1 parent 591dea3 commit e34dc68

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

roundup/rest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def format_object(self, *args, **kwargs):
9595
code = 402 # nothing to pay, just a mark for debugging purpose
9696
data = 'Method under development'
9797
except: # noqa: E722
98-
exc, val, tb = sys.exc_info()
98+
_exc, val, _tb = sys.exc_info()
9999
code = 400
100100
ts = time.ctime()
101101
if getattr(self.client.request, 'DEBUG_MODE', None):
@@ -295,12 +295,12 @@ def parse_accept_header(accept):
295295
# check for a + in the sub-type
296296
if '+' in subtyp:
297297
# if it exists, determine if the subtype is a vendor-specific type
298-
vnd, sep, extra = subtyp.partition('+')
298+
vnd, _sep, extra = subtyp.partition('+')
299299
if vnd.startswith('vnd'):
300300
# and then... if it ends in something like "-v1.1" parse the
301301
# version out
302302
if '-v' in vnd:
303-
vnd, sep, rest = vnd.rpartition('-v')
303+
vnd, _sep, rest = vnd.rpartition('-v')
304304
if len(rest):
305305
# add the version as a media param
306306
try:

0 commit comments

Comments
 (0)