diff -Nru kazam-1.4.5/debian/changelog kazam-1.4.5/debian/changelog --- kazam-1.4.5/debian/changelog 2019-06-08 08:59:36.000000000 +0000 +++ kazam-1.4.5/debian/changelog 2020-08-15 15:09:50.000000000 +0000 @@ -1,3 +1,12 @@ +kazam (1.4.5-4) unstable; urgency=medium + + * Team upload. + * Use time.perf_counter() instead of time.clock() to fix errors with + Python 3.8 (closes: #955817, LP: #1876322). + * Upload to unstable. + + -- Dmitry Shachnev Sat, 15 Aug 2020 18:09:50 +0300 + kazam (1.4.5-3) experimental; urgency=medium * Team upload. diff -Nru kazam-1.4.5/debian/patches/perf_counter.patch kazam-1.4.5/debian/patches/perf_counter.patch --- kazam-1.4.5/debian/patches/perf_counter.patch 1970-01-01 00:00:00.000000000 +0000 +++ kazam-1.4.5/debian/patches/perf_counter.patch 2020-08-15 15:09:50.000000000 +0000 @@ -0,0 +1,57 @@ +From: Charles Schaefer +Date: Wed, 29 Apr 2020 15:42:53 -0300 +Subject: Removing deprecated time.clock() calls. Using time.perf_counter() + instead + +--- + kazam/pulseaudio/pulseaudio.py | 16 ++++++++-------- + 1 file changed, 8 insertions(+), 8 deletions(-) + +diff --git a/kazam/pulseaudio/pulseaudio.py b/kazam/pulseaudio/pulseaudio.py +index 050d3fa..0e7d2d3 100644 +--- a/kazam/pulseaudio/pulseaudio.py ++++ b/kazam/pulseaudio/pulseaudio.py +@@ -255,8 +255,8 @@ class pulseaudio_q: + try: + logger.debug("get_audio_sources() called.") + pa_context_get_source_info_list(self.pa_ctx, self._pa_sourcelist_cb, None) +- t = time.clock() +- while time.clock() - t < 5: ++ t = time.perf_counter() ++ while time.perf_counter() - t < 5: + if self.pa_status == PA_FINISHED: + self.sources = self._sources + self._sources = [] +@@ -270,8 +270,8 @@ class pulseaudio_q: + try: + logger.debug("get_source_info_by_index() called. IDX: {0}".format(index)) + pa_context_get_source_info_by_index(self.pa_ctx, index, self._pa_sourceinfo_cb, None) +- t = time.clock() +- while time.clock() - t < 5: ++ t = time.perf_counter() ++ while time.perf_counter() - t < 5: + if self.pa_status == PA_FINISHED: + time.sleep(0.1) + ret = self._return_result +@@ -285,8 +285,8 @@ class pulseaudio_q: + try: + pa_context_set_source_volume_by_index(self.pa_ctx, index, cvolume, + self._pa_context_success_cb, None) +- t = time.clock() +- while time.clock() - t < 5: ++ t = time.perf_counter() ++ while time.perf_counter() - t < 5: + if self.pa_status == PA_FINISHED: + return 1 + raise PAError(PA_GET_SOURCES_TIMEOUT, "Unable to get sources, operation timed out.") +@@ -297,8 +297,8 @@ class pulseaudio_q: + try: + pa_context_set_source_mute_by_index(self.pa_ctx, index, mute, + self._pa_context_success_cb, None) +- t = time.clock() +- while time.clock() - t < 5: ++ t = time.perf_counter() ++ while time.perf_counter() - t < 5: + if self.pa_status == PA_FINISHED: + return 1 + raise PAError(PA_GET_SOURCES_TIMEOUT, "Unable to get sources, operation timed out.") diff -Nru kazam-1.4.5/debian/patches/series kazam-1.4.5/debian/patches/series --- kazam-1.4.5/debian/patches/series 2019-06-08 08:59:36.000000000 +0000 +++ kazam-1.4.5/debian/patches/series 2020-08-15 15:09:50.000000000 +0000 @@ -1,3 +1,4 @@ configparser_api_changes.patch fix-PyGIWarnings.patch setlocale.patch +perf_counter.patch