diff options
author | Marko Kreen | 2012-12-20 14:20:33 +0000 |
---|---|---|
committer | Marko Kreen | 2012-12-20 14:20:33 +0000 |
commit | caf15affd772c636b1704586ea0a25a26ddae662 (patch) | |
tree | 8e283c901ce6d45ae049d914ac8d1c7d33c7a42f | |
parent | 7908cf38738c8d918e3d23734b6dac854ff703fa (diff) |
skytools: fix submodule __all__ lists
dbservice: TableAPI was missing from __all__
but was available on top-level. Fix.
natsort.py, skylog.py: __all__ was missing, add.
Add only items that already were under top-level.
-rwxr-xr-x | python/skytools/dbservice.py | 3 | ||||
-rw-r--r-- | python/skytools/natsort.py | 3 | ||||
-rw-r--r-- | python/skytools/skylog.py | 2 |
3 files changed, 7 insertions, 1 deletions
diff --git a/python/skytools/dbservice.py b/python/skytools/dbservice.py index 7ca5956c..82bf32f9 100755 --- a/python/skytools/dbservice.py +++ b/python/skytools/dbservice.py @@ -10,7 +10,8 @@ from skytools import dbdict __all__ = ['DBService', 'ServiceContext', 'get_record', 'get_record_list', 'make_record', 'make_record_array', - #'log_result', 'transform_fields', 'TableAPI', + 'TableAPI', + #'log_result', 'transform_fields' ] try: diff --git a/python/skytools/natsort.py b/python/skytools/natsort.py index 059cb58c..b7d97c0d 100644 --- a/python/skytools/natsort.py +++ b/python/skytools/natsort.py @@ -10,6 +10,9 @@ Compares numeric parts numerically. import re as _re _rc = _re.compile(r'\d+|\D+') +__all__ = ['natsort_key', 'natsort', 'natsorted', + 'natsort_key_icase', 'natsort_icase', 'natsorted_icase'] + def natsort_key(s): """Split string to numeric and non-numeric fragments.""" return [ not f[0].isdigit() and f or int(f, 10) for f in _rc.findall(s) ] diff --git a/python/skytools/skylog.py b/python/skytools/skylog.py index abd4123a..0279d7d0 100644 --- a/python/skytools/skylog.py +++ b/python/skytools/skylog.py @@ -6,6 +6,8 @@ import logging, logging.handlers import skytools +__all__ = ['getLogger'] + # add TRACE level TRACE = 5 logging.TRACE = TRACE |