Skip to content

Commit 51d8d3f

Browse files
jdufresneLukasa
authored andcommitted
Remove shebang and standalone behavior from certifi/core.py (certifi#99)
The file certifi/core.py is not intended as a command line entry point for certifi. Instead one can use: $ python -m certifi /usr/local/lib/python2.7/site-packages/certifi/cacert.pem This use is now documented. Further, the file isn't set as executable, so the shebang is pointless.
1 parent 10a1f8a commit 51d8d3f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ built-in function::
2323
>>> certifi.where()
2424
'/usr/local/lib/python2.7/site-packages/certifi/cacert.pem'
2525

26+
Or from the command line::
27+
28+
$ python -m certifi
29+
/usr/local/lib/python2.7/site-packages/certifi/cacert.pem
30+
2631
Enjoy!
2732

2833
1024-bit Root Certificates

certifi/core.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/env python
21
# -*- coding: utf-8 -*-
32

43
"""
@@ -14,7 +13,3 @@ def where():
1413
f = os.path.dirname(__file__)
1514

1615
return os.path.join(f, 'cacert.pem')
17-
18-
19-
if __name__ == '__main__':
20-
print(where())

0 commit comments

Comments
 (0)