From facdc0b173d933073832c768ec1917c553cb369c Mon Sep 17 00:00:00 2001 From: Thomas Nagy Date: Mon, 12 Mar 2018 20:42:55 +0100 Subject: [PATCH] Python 3.7 fixes #2126 --- playground/daemon/daemon.py | 1 - waflib/Node.py | 1 - waflib/Tools/qt5.py | 1 - waflib/extras/distnet.py | 1 - 4 files changed, 4 deletions(-) diff --git a/playground/daemon/daemon.py b/playground/daemon/daemon.py index 7938122c..95e17e67 100644 --- a/playground/daemon/daemon.py +++ b/playground/daemon/daemon.py @@ -107,7 +107,6 @@ class DirWatch(object): yield k except AttributeError: pass - raise StopIteration def wait_pyinotify(self, bld): diff --git a/waflib/Node.py b/waflib/Node.py index ce6df94c..b97215d8 100644 --- a/waflib/Node.py +++ b/waflib/Node.py @@ -626,7 +626,6 @@ class Node(object): if maxdepth: for k in node.ant_iter(accept=accept, maxdepth=maxdepth - 1, pats=npats, dir=dir, src=src, remove=remove, quiet=quiet): yield k - raise StopIteration def ant_glob(self, *k, **kw): """ diff --git a/waflib/Tools/qt5.py b/waflib/Tools/qt5.py index a21fe1ae..674ce585 100644 --- a/waflib/Tools/qt5.py +++ b/waflib/Tools/qt5.py @@ -625,7 +625,6 @@ def find_single_qt5_lib(self, name, uselib, qtlibs, qtincludes, force_static): for k in ('', '5') if Utils.is_win32 else ['']: for p in ('lib', ''): yield (p, name, k, x) - raise StopIteration for tup in lib_names(): k = ''.join(tup) diff --git a/waflib/extras/distnet.py b/waflib/extras/distnet.py index 54572e60..09a31a6d 100644 --- a/waflib/extras/distnet.py +++ b/waflib/extras/distnet.py @@ -402,7 +402,6 @@ class package_reader(Context.Context): if x.pkgname == self.myproject: continue yield x - raise StopIteration def execute(self): self.compute_dependencies()