Skip to content

Commit

Permalink
Remove shebang and standalone behavior from certifi/core.py (#99)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jdufresne authored and Lukasa committed Mar 3, 2019
1 parent 10a1f8a commit 51d8d3f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 5 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ built-in function::
>>> certifi.where()
'/usr/local/lib/python2.7/site-packages/certifi/cacert.pem'

Or from the command line::

$ python -m certifi
/usr/local/lib/python2.7/site-packages/certifi/cacert.pem

Enjoy!

1024-bit Root Certificates
Expand Down
5 changes: 0 additions & 5 deletions certifi/core.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

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

return os.path.join(f, 'cacert.pem')


if __name__ == '__main__':
print(where())

0 comments on commit 51d8d3f

Please sign in to comment.