Skip to content

Commit 0ddd04e

Browse files
4B796C65@gmail.com4B796C65@gmail.com
authored andcommitted
Preparing the module for epydoc.
1 parent f0c5c86 commit 0ddd04e

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

tdl/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import array
1010

1111
from . import event
12-
from .tcod import _lib, _Color, _unpackfile
12+
from .__tcod import _lib, _Color, _unpackfile
1313

1414
_IS_PYTHON3 = (sys.version_info[0] == 3)
1515
#_encoding = 'cp437'
@@ -690,5 +690,5 @@ def forceResolution(width, height):
690690
"""
691691
_lib.TCOD_sys_force_fullscreen_resolution(width, height)
692692

693-
__all__ = [var for var in locals().keys() if not '_' in var[0]]
693+
__all__ = [var for var in locals().keys() if var[0] != '_' and var not in ['sys', 'os', 'ctypes', 'array', 'weakref']]
694694

tdl/tcod.py renamed to tdl/__tcod.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,3 +464,5 @@ def __repr__(self):
464464
_lib.TCOD_sys_wait_for_event.argtypes = (c_int, POINTER(_Key), POINTER(_Mouse))
465465
_lib.TCOD_sys_check_for_event.restype = c_int
466466
_lib.TCOD_sys_check_for_event.argtypes = (c_int, POINTER(_Key), POINTER(_Mouse))
467+
468+
__all__ = ()

tdl/event.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
import time
1717
import ctypes
1818

19-
from .tcod import _lib, _Mouse, _Key
20-
from . import tcod as _tcod
19+
from .__tcod import _lib, _Mouse, _Key
20+
from . import __tcod as _tcod
2121
import tdl as _tdl
2222

2323
_mousel = 0
@@ -247,4 +247,4 @@ def isWindowClosed():
247247
"""
248248
return _lib.TCOD_console_is_window_closed()
249249

250-
__all__ = [var for var in locals().keys() if not '_' in var[0]]
250+
__all__ = [var for var in locals().keys() if var[0] != '_' and var not in ['time', 'ctypes']]

0 commit comments

Comments
 (0)