1
0
forked from pool/python-rawkit
Files
python-rawkit/python37.patch
Tomáš Chvátal ad31904da8 - Update to 0.6.0:
* Support for libraw 1.8 
- Add patch to build with python 3.7:
  * python37.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rawkit?expand=0&rev=3
2018-08-29 12:02:42 +00:00

25 lines
729 B
Diff

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."""