Skip to content

Commit

Permalink
Add from_iterator creation flag
Browse files Browse the repository at this point in the history
  • Loading branch information
thecjharries committed Mar 17, 2018
1 parent 0f64ac4 commit df0e8b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pygit2/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,10 @@ class ConfigEntry(object):
"""

@classmethod
def _from_c(cls, ptr):
def _from_c(cls, ptr, from_iterator=False):
entry = cls.__new__(cls)
entry._entry = ptr
entry.from_iterator = from_iterator
return entry

def __del__(self):
Expand Down

0 comments on commit df0e8b6

Please sign in to comment.