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/
/dist/
/pdfminer.six.egg-info/
tests/*.xml
tests/*.txt
.idea/

View File

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

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
""" Python implementation of Arcfour encryption algorithm.
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).

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
""" 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.

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
""" 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
# version 1.4 section 3.3.4.

View File

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

View File

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

View File

@ -1,4 +1,5 @@
#!/usr/bin/python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
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 -*-
from nose.tools import assert_equal

View File

@ -1,4 +1,5 @@
#!/usr/bin/python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
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 -*-
import six

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python
#
# 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.
#

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python
"""
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
import sys
def prof_main(argv):

View File

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