Skip to content

Commit a1505e6

Browse files
committed
🎨 Enable new-style cls by default in settings mod
1 parent cf9c5ac commit a1505e6

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
@@ -36,7 +36,11 @@
3636
from _pygit2 import GIT_OPT_SET_CACHE_MAX_SIZE
3737

3838

39-
class SearchPathList(object):
39+
40+
__metaclass__ = type # make all classes new-style by default
41+
42+
43+
class SearchPathList:
4044

4145
def __getitem__(self, key):
4246
return option(GIT_OPT_GET_SEARCH_PATH, key)
@@ -45,7 +49,7 @@ def __setitem__(self, key, value):
4549
option(GIT_OPT_SET_SEARCH_PATH, key, value)
4650

4751

48-
class Settings(object):
52+
class Settings:
4953
"""Library-wide settings interface."""
5054

5155
__slots__ = []

0 commit comments

Comments
 (0)