Skip to content

Commit

Permalink
Merge pull request #1467 from osmanirosado/master
Browse files Browse the repository at this point in the history
#1466 The clock function was removed from time module in Python 3.8
  • Loading branch information
xael-fry authored Mar 1, 2024
2 parents 8266879 + 8070e1e commit a9ed21f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/pym/play/commands/modulesrepo.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def __init__(self, width=55):

def retrieve(self, url, destination, callback=None):
self.size = 0
time.clock()
time.perf_counter()
try:
headers={'User-Agent':DEFAULT_USER_AGENT,
'Accept': 'application/json'
Expand Down Expand Up @@ -162,7 +162,7 @@ def progress(self, bytes_so_far, blocksize, filesize):
done = 100
bar = self.bar(bytes_so_far, filesize, done)
if not self.cycles % 3 and bits != filesize:
now = time.clock()
now = time.perf_counter()
elapsed = now-self.before
if elapsed:
speed = self.kibi(blocksize * 3 // elapsed)
Expand Down

0 comments on commit a9ed21f

Please sign in to comment.