diff options
author | 2019-09-16 14:18:00 -0600 | |
---|---|---|
committer | 2019-09-16 14:18:00 -0600 | |
commit | 8ad1aebff3796f4495e6f238762890984d7a689c (patch) | |
tree | eebeba3ab887fb2648dd5d502012c4f78e4df2b7 /doc | |
parent | ebuild.atom: make restrictions a jitted attribute (diff) | |
download | pkgcore-8ad1aebff3796f4495e6f238762890984d7a689c.tar.gz pkgcore-8ad1aebff3796f4495e6f238762890984d7a689c.tar.bz2 pkgcore-8ad1aebff3796f4495e6f238762890984d7a689c.zip |
drop explicit object inheritance
We don't support py2 anymore so it's not necessary.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/dev-notes/config.rst | 2 | ||||
-rw-r--r-- | doc/dev-notes/plugins.rst | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/dev-notes/config.rst b/doc/dev-notes/config.rst index fde5955ac..5d7f2af00 100644 --- a/doc/dev-notes/config.rst +++ b/doc/dev-notes/config.rst @@ -71,7 +71,7 @@ To make a class available, do this:: from pkgcore.config import ConfigHint, errors - class MyRepo(object): + class MyRepo: pkgcore_config_type = ConfigHint({'cache': 'section_ref'}, typename='repo') diff --git a/doc/dev-notes/plugins.rst b/doc/dev-notes/plugins.rst index 5179b2924..8a30d7e8b 100644 --- a/doc/dev-notes/plugins.rst +++ b/doc/dev-notes/plugins.rst @@ -64,7 +64,7 @@ invalidate the cache). Instead you should do something like this:: try: from spork_package import ThePlugin except ImportError: - class ThePlugin(object): + class ThePlugin: disabled = True pkgcore_plugins = {'myplug': [ThePlugin]} |