Skip to content

Commit ee6abb8

Browse files
committed
rename logging -> adafruit_logging
1 parent 38af874 commit ee6abb8

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ Usage Example
3131

3232
.. code-block:: python
3333
34-
import logging
34+
import adafruit_logging as logging
3535
36-
logger = getLogger('test')
36+
logger = logging.getLogger('test')
3737
3838
logger.setLevel(logging.ERROR)
3939
logger.info('Info message')

logging.py renamed to adafruit_logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
# THE SOFTWARE.
2222
"""
23-
`logging`
23+
`adafruit_logging`
2424
================================================================================
2525
2626
Logging module for CircuitPython

docs/api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
.. If your library file(s) are nested in a directory (e.g. /adafruit_foo/foo.py)
55
.. use this format as the module name: "adafruit_foo.foo"
66
7-
.. automodule:: .logging
7+
.. automodule:: adafruit_logging
88
:members:

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# Uncomment the below if you use native CircuitPython modules such as
2121
# digitalio, micropython and busio. List the modules you use. Without it, the
2222
# autodoc module docs will fail to generate with a warning.
23-
autodoc_mock_imports = ["digitalio", "busio", "logging"]
23+
#autodoc_mock_imports = ["digitalio", "busio"]
2424

2525

2626
intersphinx_mapping = {'python': ('https://docs.python.org/3.4', None),'CircuitPython': ('https://circuitpython.readthedocs.io/en/latest/', None)}

examples/logger_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pylint:disable=undefined-variable,wildcard-import,no-name-in-module
22
#pylint:disable=no-member
33

4-
import logging
4+
import adafruit_logging as logging
55

66
logger = logging.getLogger('test')
77

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,5 @@
5959
# simple. Or you can use find_packages().
6060
# TODO: IF LIBRARY FILES ARE A PACKAGE FOLDER,
6161
# CHANGE `py_modules=['...']` TO `packages=['...']`
62-
py_modules=['logging'],
62+
py_modules=['adafruit_logging'],
6363
)

0 commit comments

Comments
 (0)