allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [allura] 10/16: [#8375] iterator compatibility for py3
Date Thu, 27 Aug 2020 20:35:35 GMT
This is an automated email from the ASF dual-hosted git repository.

brondsem pushed a commit to branch db/8375
in repository https://gitbox.apache.org/repos/asf/allura.git

commit 59c853fe702c6f5d12de6502c6e2b9694f991cc0
Author: Dave Brondsema <dave@brondsema.net>
AuthorDate: Tue Aug 25 18:15:33 2020 -0400

    [#8375] iterator compatibility for py3
---
 Allura/allura/lib/utils.py           | 1 +
 Allura/allura/scripts/trac_export.py | 1 +
 2 files changed, 2 insertions(+)

diff --git a/Allura/allura/lib/utils.py b/Allura/allura/lib/utils.py
index a6f782e..9a7063a 100644
--- a/Allura/allura/lib/utils.py
+++ b/Allura/allura/lib/utils.py
@@ -637,6 +637,7 @@ class EmptyCursor(ODMCursor):
 
     def next(self):
         raise StopIteration
+    __next__ = next
 
     def options(self, **kw):
         return self
diff --git a/Allura/allura/scripts/trac_export.py b/Allura/allura/scripts/trac_export.py
index b5934d8..4c2e937 100644
--- a/Allura/allura/scripts/trac_export.py
+++ b/Allura/allura/scripts/trac_export.py
@@ -293,6 +293,7 @@ class TracExport(object):
             if id >= self.start_id:
                 break
         return self.get_ticket(id, extra)
+    __next__ = next
 
     def clean_missing_wiki_links(self, doc):
         for link in doc.findAll('a', 'missing wiki'):


Mime
View raw message