Skip to content

Commit

Permalink
Remove unnecessary __future__ imports
Browse files Browse the repository at this point in the history
Each of these are the defaults in Python 3.x.

Signed-off-by: Stephen Finucane <stephen@that.guru>
  • Loading branch information
stephenfin committed Jun 7, 2020
1 parent de883d3 commit 8ff20d1
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion rst2pdf/dumpstyle.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
to .style in the styles directory.
'''

from __future__ import absolute_import
import sys
import os

Expand Down
2 changes: 0 additions & 2 deletions rst2pdf/findfonts.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
then create rst2pdf-ready font-aliases.
"""

from __future__ import unicode_literals

import os
import subprocess
import sys
Expand Down
4 changes: 0 additions & 4 deletions rst2pdf/pdfbuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -843,10 +843,6 @@ def try_parse(src):
# lines beginning with "..." are probably placeholders for suite
src = re.sub(r"(?m)^(\s*)" + mark + "(.)", r"\1"+ mark + r"# \2", src)

# if we're using 2.5, use the with statement
if sys.version_info >= (2, 5):
src = 'from __future__ import with_statement\n' + src

if not isinstance(src, bytes):
# Non-ASCII chars will only occur in string literals
# and comments. If we wanted to give them to the parser
Expand Down
1 change: 0 additions & 1 deletion rst2pdf/pygments2style.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
Creates a rst2pdf stylesheet for each pygments style.
'''

from __future__ import absolute_import
import sys
import os
from . import dumpstyle
Expand Down
2 changes: 0 additions & 2 deletions rst2pdf/rson.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
http://code.google.com/p/rson/
'''

from __future__ import unicode_literals

__version__ = '0.08'

__author__ = 'Patrick Maupin <pmaupin@gmail.com>'
Expand Down

0 comments on commit 8ff20d1

Please sign in to comment.