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
parent
bc78fd2bea
commit
0fdebc6739
|
@ -12,3 +12,6 @@ docs/_build
|
||||||
/build/
|
/build/
|
||||||
/dist/
|
/dist/
|
||||||
/pdfminer.six.egg-info/
|
/pdfminer.six.egg-info/
|
||||||
|
tests/*.xml
|
||||||
|
tests/*.txt
|
||||||
|
.idea/
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
__version__ = '20160614'
|
__version__ = '20160614'
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
|
|
||||||
""" Python implementation of ASCII85/ASCIIHex decoder (Adobe version).
|
""" Python implementation of ASCII85/ASCIIHex decoder (Adobe version).
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
# CCITT Fax decoder
|
# CCITT Fax decoder
|
||||||
#
|
#
|
||||||
# Bugs: uncompressed mode untested.
|
# Bugs: uncompressed mode untested.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
|
|
||||||
""" Adobe character mapping (CMap) support.
|
""" Adobe character mapping (CMap) support.
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
|
|
||||||
""" Font metrics for the Adobe core 14 fonts.
|
""" Font metrics for the Adobe core 14 fonts.
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
|
|
||||||
""" Mappings from Adobe glyph names to Unicode characters.
|
""" Mappings from Adobe glyph names to Unicode characters.
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
import struct
|
import struct
|
||||||
import os
|
import os
|
||||||
import os.path
|
import os.path
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
|
|
||||||
""" Standard encoding tables used in PDF.
|
""" Standard encoding tables used in PDF.
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
from .pdffont import PDFUnicodeNotDefined
|
from .pdffont import PDFUnicodeNotDefined
|
||||||
|
|
||||||
from . import utils
|
from . import utils
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
import re
|
import re
|
||||||
import struct
|
import struct
|
||||||
import logging
|
import logging
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
import sys
|
import sys
|
||||||
import struct
|
import struct
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
import re
|
import re
|
||||||
import logging
|
import logging
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
import zlib
|
import zlib
|
||||||
import logging
|
import logging
|
||||||
from .lzw import lzwdecode
|
from .lzw import lzwdecode
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
import re
|
import re
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
|
|
||||||
""" Python implementation of Rijndael encryption algorithm.
|
""" Python implementation of Rijndael encryption algorithm.
|
||||||
|
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env python
|
|
||||||
"""
|
"""
|
||||||
Miscellaneous Routines.
|
Miscellaneous Routines.
|
||||||
"""
|
"""
|
||||||
|
|
1
setup.py
1
setup.py
|
@ -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__
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
import six
|
import six
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import fileinput
|
import fileinput
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import fileinput
|
import fileinput
|
||||||
|
|
||||||
|
|
|
@ -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.
|
||||||
#
|
#
|
||||||
|
|
|
@ -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.
|
||||||
#
|
#
|
||||||
|
|
|
@ -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.
|
||||||
#
|
#
|
||||||
|
|
|
@ -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".
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
def prof_main(argv):
|
def prof_main(argv):
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
##
|
##
|
||||||
## WebApp class runner
|
## WebApp class runner
|
||||||
##
|
##
|
||||||
|
|
Loading…
Reference in New Issue