Skip to content

Commit

Permalink
Merge branch 'feature/decode-name' into feature/return-config-entry-f…
Browse files Browse the repository at this point in the history
…rom-iter
  • Loading branch information
thecjharries committed Mar 17, 2018
2 parents bbcb464 + 55604ca commit 835e711
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pygit2/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def next(self):

def __next__(self):
entry = self._next_entry()
return ffi.string(entry.name).decode('utf-8')
return entry.name


class ConfigMultivarIterator(ConfigIterator):
Expand Down Expand Up @@ -311,7 +311,7 @@ def level(self):

@property
def name(self):
return self._entry.name
return self.decode_as_string(self._entry.name)

@property
def value_string(self):
Expand Down

0 comments on commit 835e711

Please sign in to comment.