From 09e84d87d5f5f5cb8f085168fc563300d6c4d5eb Mon Sep 17 00:00:00 2001 From: Phil Elson <philip.elson@cern.ch> Date: Mon, 23 Mar 2020 08:26:19 +0100 Subject: [PATCH] Made the pyjapc.pyjapc module private. The pyjapc.PyJapc class is the primary entrypoint, not the module itself. --- docs/pyjapc.rst | 11 +++++------ pyjapc/__init__.py | 2 +- pyjapc/{pyjapc.py => _japc.py} | 0 3 files changed, 6 insertions(+), 7 deletions(-) rename pyjapc/{pyjapc.py => _japc.py} (100%) diff --git a/docs/pyjapc.rst b/docs/pyjapc.rst index 95bf97a..0dec2d9 100644 --- a/docs/pyjapc.rst +++ b/docs/pyjapc.rst @@ -1,18 +1,17 @@ PyJapc API ========== -Module pyjapc.pyjapc --------------------- +pyjapc.PyJapc class +------------------- -.. automodule:: pyjapc.pyjapc +.. autoclass:: pyjapc.PyJapc :members: :undoc-members: - :show-inheritance: -Module pyjapc.rbac_dialog + +pyjapc.rbac_dialog module ------------------------- .. automodule:: pyjapc.rbac_dialog :members: :undoc-members: - :show-inheritance: diff --git a/pyjapc/__init__.py b/pyjapc/__init__.py index 18a5dbf..b128233 100644 --- a/pyjapc/__init__.py +++ b/pyjapc/__init__.py @@ -1,6 +1,6 @@ import warnings -from .pyjapc import PyJapc +from ._japc import PyJapc try: from .rbac_dialog import PasswordEntryDialogue, getPw except ImportError: diff --git a/pyjapc/pyjapc.py b/pyjapc/_japc.py similarity index 100% rename from pyjapc/pyjapc.py rename to pyjapc/_japc.py -- GitLab