- 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
This commit is contained in:
committed by
Git OBS Bridge
parent
78e6a1592c
commit
ad31904da8
24
python37.patch
Normal file
24
python37.patch
Normal file
@@ -0,0 +1,24 @@
|
||||
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."""
|
||||
Reference in New Issue
Block a user