diff options
| author | KyleMiles <krm504@nyu.edu> | 2022-01-27 22:43:28 -0500 |
|---|---|---|
| committer | KyleMiles <krm504@nyu.edu> | 2022-01-28 00:24:06 -0500 |
| commit | 6812c973c9fa9b4ad642ab81856c05f87bd6fcc4 (patch) | |
| tree | dace4156d03148bcaf02df138ab4e0d93e61bc6f /python/pluginmanager.py | |
| parent | 519c9db22367f2659d1a54599fab47e6313be06e (diff) | |
Format All Files
Diffstat (limited to 'python/pluginmanager.py')
| -rw-r--r-- | python/pluginmanager.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/python/pluginmanager.py b/python/pluginmanager.py index 1b5e1b72..dfa64222 100644 --- a/python/pluginmanager.py +++ b/python/pluginmanager.py @@ -41,7 +41,9 @@ class RepoPlugin: core.BNFreePlugin(self.handle) def __repr__(self): - return "<{} {}/{}>".format(self.path, "installed" if self.installed else "not-installed", "enabled" if self.enabled else "disabled") + return "<{} {}/{}>".format( + self.path, "installed" if self.installed else "not-installed", "enabled" if self.enabled else "disabled" + ) @property def path(self): @@ -183,7 +185,6 @@ class RepoPlugin: """String version of the plugin""" return core.BNPluginGetVersion(self.handle) - def install_instructions(self, platform): """ Installation instructions for the given platform @@ -256,6 +257,7 @@ class RepoPlugin: """Returns a datetime object representing the plugins last update""" return datetime.fromtimestamp(core.BNPluginGetLastUpdate(self.handle)) + class Repository: """ ``Repository`` is a read-only class. Use RepositoryManager to Enable/Disable/Install/Uninstall plugins. @@ -349,7 +351,6 @@ class RepositoryManager: binaryninja._init_plugins() return Repository(core.BNNewRepositoryReference(core.BNRepositoryManagerGetDefaultRepository(self.handle))) - def add_repository(self, url=None, repopath=None): """ ``add_repository`` adds a new plugin repository for the manager to track. |
