Skip to content

Commit ea97bc6

Browse files
committed
Remove obsolete comments
1 parent 5f86b4e commit ea97bc6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mbed/mbed.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,12 +1352,10 @@ def cache_lock(self, url):
13521352
lock_dir = os.path.join(cpath, '.lock')
13531353
lock_file = os.path.join(lock_dir, 'pid')
13541354

1355-
# this loop is handling a lock file from another process if exists
13561355
for i in range(300):
13571356
if i:
13581357
time.sleep(1)
13591358

1360-
# lock file exists, but we need to check pid as well in case the process died
13611359
if os.path.exists(lock_dir):
13621360
if os.path.isfile(lock_file):
13631361
with open(lock_file, 'r', 0) as f:
@@ -1399,6 +1397,7 @@ def cache_unlock(self, url):
13991397
cpath = self.url2cachedir(url)
14001398
if not cpath:
14011399
return False
1400+
14021401
lock_dir = os.path.join(cpath, '.lock')
14031402
lock_file = os.path.join(lock_dir, 'pid')
14041403
if os.path.exists(lock_dir):

0 commit comments

Comments
 (0)