Lint: F821 undefined name 'count'

This commit is contained in:
Joshua Boniface 2020-11-07 13:39:51 -05:00
parent 6cf7f178a6
commit 99d723dd8b
1 changed files with 2 additions and 0 deletions

View File

@ -125,6 +125,7 @@ def writedata(zk_conn, kv):
# Write lock function
def writelock(zk_conn, key):
count = 1
while True:
try:
lock_id = str(uuid.uuid1())
@ -141,6 +142,7 @@ def writelock(zk_conn, key):
# Read lock function
def readlock(zk_conn, key):
count = 1
while True:
try:
lock_id = str(uuid.uuid1())