#4819 support pygit2 >= 1.1.0
Merged 4 years ago by pingou. Opened 4 years ago by sudoman.
sudoman/pagure general-improvements-1  into  master

file modified
+5 -1
@@ -19,7 +19,11 @@ 

  

  import six

  import pygit2

- import _pygit2

+ 

+ try:

+     import _pygit2

+ except ImportError:

+     from pygit2 import _pygit2

  

  

  real_pygit2_repository = pygit2.Repository

The method for importing _pygit2 has changed. This patch attempts both the new and old methods.

https://github.com/libgit2/pygit2/blob/master/CHANGELOG.rst#110-2020-03-01

This patch resolves issues on Fedora 32.

Pull-Request has been merged by pingou

4 years ago