Skip to content

Commit 6bdb013

Browse files
committed
settings: python 3.3 compat
Python 3.3 doesn't like us overriding properties in __slots__, so set it to an empty list.
1 parent 48ff3a8 commit 6bdb013

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pygit2/settings.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,13 @@ def __setitem__(self, key, value):
3939

4040
class Settings(object):
4141

42-
__slots__ = ['mwindow_size', 'search_path']
42+
__slots__ = []
4343

44-
search_path = SearchPathList()
44+
_search_path = SearchPathList()
45+
46+
@property
47+
def search_path(self):
48+
return self._search_path
4549

4650
@property
4751
def mwindow_size(self):

0 commit comments

Comments
 (0)