6e88051f14
...in bytecompilation phase, see rhbz#1616219) Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
47 lines
1.4 KiB
Diff
47 lines
1.4 KiB
Diff
From 9dc14b55077567099a13b71ac87816f608b044a9 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Jan=20Pokorn=C3=BD?= <jpokorny@redhat.com>
|
|
Date: Wed, 15 Aug 2018 10:52:49 +0200
|
|
Subject: [PATCH] Maint: cts: refrain from async (await) in Python code for
|
|
being reserved
|
|
|
|
... as of Python 3.7:
|
|
https://docs.python.org/3/whatsnew/3.7.html#summary-release-highlights
|
|
|
|
One of the instance attributes turned out to be bogus.
|
|
|
|
Randomly spotted; unfortunately byte compilation when building package
|
|
for Fedora will not consider unability to pregenerate bytecode a fatal
|
|
problem.
|
|
---
|
|
cts/remote.py | 1 -
|
|
cts/watcher.py | 4 ++--
|
|
2 files changed, 2 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/cts/remote.py b/cts/remote.py
|
|
index af18d410c6..e5e4c276a2 100644
|
|
--- a/cts/remote.py
|
|
+++ b/cts/remote.py
|
|
@@ -140,7 +140,6 @@ class uses ssh.
|
|
'''
|
|
|
|
def __init__(self, rsh, silent=False):
|
|
- self.async = []
|
|
self.rsh = rsh
|
|
self.silent = silent
|
|
self.logger = LogFactory()
|
|
diff --git a/cts/watcher.py b/cts/watcher.py
|
|
index f3ca5806ee..56239eaf8b 100644
|
|
--- a/cts/watcher.py
|
|
+++ b/cts/watcher.py
|
|
@@ -47,8 +47,8 @@ def debug(self, args):
|
|
self.logger.debug(message)
|
|
|
|
def harvest(self, delegate=None):
|
|
- async = self.harvest_async(delegate)
|
|
- async.join()
|
|
+ async_task = self.harvest_async(delegate)
|
|
+ async_task.join()
|
|
|
|
def harvest_async(self, delegate=None):
|
|
self.log("Not implemented")
|