From 640bb40a12035202d0e1421064e6097e4d33a8e2 Mon Sep 17 00:00:00 2001 From: Chandan Shinde Date: Wed, 11 Sep 2019 13:42:24 +0530 Subject: [PATCH] updated line 215 for handling deprecation. The latest python 3.7.4 gives following deprecation warning for time.clock : DeprecationWarning: time.clock has been deprecated in Python 3.3 and will be removed from Python 3.8: use time.perf_counter or time.process_time instead So i updated time.clock with time.pref_counter, script is working fine. --- ping.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ping.py b/ping.py index 3488bf7..ae8ac67 100755 --- a/ping.py +++ b/ping.py @@ -212,7 +212,7 @@ if sys.platform == "win32": # On Windows, the best timer is time.clock() - default_timer = time.clock + default_timer = time.perf_counter else: # On most other platforms the best timer is time.time() default_timer = time.time