Skip to content

Commit a472b57

Browse files
committed
Don't ship pam.py in the module
The comment at the top of this file says: "This is a legacy file, it is not used. Here for example." so it seems sensible to no longer ship it as part of the pam module itself. This moves it to an examples/ directory which will not be included in builds of the actual module, and updates the comment. Signed-off-by: Adam Williamson <[email protected]>
1 parent 2408c2e commit a472b57

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
include README.md
22
include LICENSE
3+
graft examples

src/pam/pam.py renamed to examples/pam.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
'''
2323
PAM module for python
2424
25-
This is a legacy file, it is not used. Here for example.
25+
This is a legacy implementation of the real module, kept around as a usage
26+
example.
2627
2728
Provides an authenticate function that will allow the caller to authenticate
2829
a user against the Pluggable Authentication Modules (PAM) on the system.
@@ -31,7 +32,7 @@
3132
'''
3233

3334
import six
34-
import __internals
35+
import pam.__internals
3536

3637
if __name__ == "__main__": # pragma: no cover
3738
import readline

0 commit comments

Comments
 (0)