File python37.patch of Package python-rawkit
From 663e90afa835d398aedd782c87b8cd0bff64bc9f Mon Sep 17 00:00:00 2001
From: Eli Schwartz <eschwartz@archlinux.org>
Date: Mon, 6 Aug 2018 21:07:05 -0400
Subject: [PATCH] python3.7 compatibility: Generators should not raise
StopIteration
See PEP 479
---
rawkit/options.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rawkit/options.py b/rawkit/options.py
index 1e1cd4b..678ad96 100644
--- a/rawkit/options.py
+++ b/rawkit/options.py
@@ -255,7 +255,7 @@ def __iter__(self):
try:
yield self.keys()[idx - 1]
except IndexError:
- raise StopIteration
+ return
def __repr__(self):
"""Represents the options as a dict."""