File: 0006-Fix-GenericIterator-class-interface.patch

package info (click to toggle)
python-pygit2 1.17.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,660 kB
  • sloc: ansic: 12,509; python: 8,425; sh: 196; makefile: 26
file content (22 lines) | stat: -rw-r--r-- 546 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: =?utf-8?q?Timo_R=C3=B6hling?= <roehling@debian.org>
Date: Tue, 19 Nov 2024 09:33:52 +0100
Subject: Fix GenericIterator class interface

---
 pygit2/utils.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/pygit2/utils.py b/pygit2/utils.py
index 1f112b2..d3bc51f 100644
--- a/pygit2/utils.py
+++ b/pygit2/utils.py
@@ -168,6 +168,9 @@ class GenericIterator:
     def __iter__(self):
         return self
 
+    def __iter__(self):
+        return self
+
     def __next__(self):
         idx = self.idx
         if idx >= self.length: