Skip to content

Commit ff9f53b

Browse files
author
Kevin Turner
committed
[project @ add __all__ to __init__.py files, fixes #138]
1 parent 4eb75d0 commit ff9f53b

6 files changed

Lines changed: 39 additions & 0 deletions

File tree

‎openid/__init__.py‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,24 @@
2525

2626
__version__ = '[library version:2.1.1]'[17:-1]
2727

28+
__all__ = [
29+
'association',
30+
'consumer',
31+
'cryptutil',
32+
'dh',
33+
'extension',
34+
'extensions',
35+
'fetchers',
36+
'kvform',
37+
'message',
38+
'oidutil',
39+
'server',
40+
'sreg',
41+
'store',
42+
'urinorm',
43+
'yadis',
44+
]
45+
2846
# Parse the version info
2947
try:
3048
version_info = map(int, __version__.split('.'))

‎openid/consumer/__init__.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
This package contains the portions of the library used only when
33
implementing an OpenID consumer.
44
"""
5+
6+
__all__ = ['consumer', 'discover']

‎openid/extensions/__init__.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
"""OpenID Extension modules."""
2+
3+
__all__ = ['ax', 'pape', 'sreg']

‎openid/server/__init__.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
This package contains the portions of the library used only when
33
implementing an OpenID server. See L{openid.server.server}.
44
"""
5+
6+
__all__ = ['server', 'trustroot']

‎openid/store/__init__.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@
44
55
@sort: interface, filestore, sqlstore, memstore
66
"""
7+
8+
__all__ = ['interface', 'filestore', 'sqlstore', 'memstore', 'nonce']

‎openid/yadis/__init__.py‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@
33
@see: U{http://www.openidenabled.com/yadis}
44
"""
55

6+
__all__ = [
7+
'constants',
8+
'discover',
9+
'etxrd',
10+
'filters',
11+
'manager',
12+
'parsehtml',
13+
'services',
14+
'xri',
15+
'xrires',
16+
]
17+
618
__version__ = '[library version:1.1.0-rc1]'[17:-1]
719

820
# Parse the version info

0 commit comments

Comments
 (0)