Removing all the "#!/usr/bin/env python" lines, they do not need for … (#34)

* Removing all the "#!/usr/bin/env python" lines, they do not need for python3, solving issue number: #19.

* Restored all the shebangs in the tools and tests folders (because they are real executables) but used "#!/usr/bin/env python" instead of "#!/usr/bin/python" as this blog points out: https://www.peterbe.com/plog/importance-of-env
Removed also the shebang from pdfminer/psparser.py file.
pull/41/head
Antonio Ercole De Luca 2016-11-08 20:01:11 +01:00 committed by Goulu
parent bc78fd2bea
commit 0fdebc6739
42 changed files with 48 additions and 33 deletions

3
.gitignore vendored
View File

@ -12,3 +12,6 @@ docs/_build
/build/ /build/
/dist/ /dist/
/pdfminer.six.egg-info/ /pdfminer.six.egg-info/
tests/*.xml
tests/*.txt
.idea/

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
__version__ = '20160614' __version__ = '20160614'

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
""" Python implementation of Arcfour encryption algorithm. """ Python implementation of Arcfour encryption algorithm.
See https://en.wikipedia.org/wiki/RC4 See https://en.wikipedia.org/wiki/RC4

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
""" Python implementation of ASCII85/ASCIIHex decoder (Adobe version). """ Python implementation of ASCII85/ASCIIHex decoder (Adobe version).

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
# CCITT Fax decoder # CCITT Fax decoder
# #
# Bugs: uncompressed mode untested. # Bugs: uncompressed mode untested.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
""" Adobe character mapping (CMap) support. """ Adobe character mapping (CMap) support.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import logging import logging
import re import re

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
import re import re
from .psparser import PSLiteral from .psparser import PSLiteral
from .glyphlist import glyphname2unicode from .glyphlist import glyphname2unicode

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
""" Font metrics for the Adobe core 14 fonts. """ Font metrics for the Adobe core 14 fonts.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
""" Mappings from Adobe glyph names to Unicode characters. """ Mappings from Adobe glyph names to Unicode characters.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python3 3
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
""" """
Functions that encapsulate "usual" use-cases for pdfminer, for use making Functions that encapsulate "usual" use-cases for pdfminer, for use making

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
import struct import struct
import os import os
import os.path import os.path

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
""" Standard encoding tables used in PDF. """ Standard encoding tables used in PDF.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
from .utils import INF from .utils import INF
from .utils import Plane from .utils import Plane
from .utils import get_bound from .utils import get_bound

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
from io import BytesIO from io import BytesIO
import six #Python 2+3 compatibility import six #Python 2+3 compatibility

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
from .psparser import LIT from .psparser import LIT
import six #Python 2+3 compatibility import six #Python 2+3 compatibility

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
from .pdffont import PDFUnicodeNotDefined from .pdffont import PDFUnicodeNotDefined
from . import utils from . import utils

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
import re import re
import struct import struct
import logging import logging

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
import sys import sys
import struct import struct
from io import BytesIO from io import BytesIO

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
import re import re
import logging import logging
from io import BytesIO from io import BytesIO

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
import logging import logging
from .psparser import LIT from .psparser import LIT
from .pdftypes import PDFObjectNotFound from .pdftypes import PDFObjectNotFound

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
import logging import logging
from io import BytesIO from io import BytesIO
from .psparser import PSStackParser from .psparser import PSStackParser

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
import zlib import zlib
import logging import logging
from .lzw import lzwdecode from .lzw import lzwdecode

View File

@ -1,4 +1,5 @@
#!/usr/bin/python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import re import re

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
""" Python implementation of Rijndael encryption algorithm. """ Python implementation of Rijndael encryption algorithm.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
# #
# RunLength decoder (Adobe version) implementation based on PDF Reference # RunLength decoder (Adobe version) implementation based on PDF Reference
# version 1.4 section 3.3.4. # version 1.4 section 3.3.4.

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
""" """
Miscellaneous Routines. Miscellaneous Routines.
""" """

View File

@ -1,4 +1,3 @@
#!/usr/bin/env python
#from distutils.core import setup #from distutils.core import setup
from setuptools import setup from setuptools import setup
from pdfminer import __version__ from pdfminer import __version__

View File

@ -1,4 +1,5 @@
#!/usr/bin/python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from nose.tools import assert_equal, assert_true, assert_false from nose.tools import assert_equal, assert_true, assert_false

View File

@ -1,4 +1,4 @@
#!/usr/bin/python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from nose.tools import assert_equal from nose.tools import assert_equal

View File

@ -1,4 +1,5 @@
#!/usr/bin/python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from nose.tools import assert_equal, assert_true, assert_false from nose.tools import assert_equal, assert_true, assert_false

View File

@ -1,4 +1,5 @@
#!/usr/bin/python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import six import six

View File

@ -1,4 +1,5 @@
#!/usr/bin/python #!/usr/bin/env python
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import nose, logging, os import nose, logging, os

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
import sys import sys
import fileinput import fileinput

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
import sys import sys
try: try:
import cPickle as pickle import cPickle as pickle

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
import sys import sys
import fileinput import fileinput

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# #
# dumppdf.py - dump pdf contents in XML format. # dumppdf.py - dump pdf contents in XML format.
# #

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# #
# latin2ascii.py - converts latin1 characters into ascii. # latin2ascii.py - converts latin1 characters into ascii.
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/python -O #!/usr/bin/env python -O
# #
# pdf2html.cgi - Gateway script for converting PDF into HTML. # pdf2html.cgi - Gateway script for converting PDF into HTML.
# #

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
""" """
Converts PDF text content (though not images containing text) to plain text, html, xml or "tags". Converts PDF text content (though not images containing text) to plain text, html, xml or "tags".
""" """

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
import sys import sys
def prof_main(argv): def prof_main(argv):

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
## ##
## WebApp class runner ## WebApp class runner
## ##