Skip to content

Commit

Permalink
Remove py2.x leftovers
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelsousa committed Apr 9, 2021
1 parent 9946904 commit 00c3ba7
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 21 deletions.
2 changes: 0 additions & 2 deletions lib/opentypesvg/addsvg.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
The font format can be either OpenType or TrueType.
"""

from __future__ import print_function

__version__ = '1.1.1'

import argparse
Expand Down
2 changes: 0 additions & 2 deletions lib/opentypesvg/dumpsvg.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
The font's format can be either OpenType, TrueType, WOFF, or WOFF2.
"""

from __future__ import division, print_function

__version__ = '1.1.1'

import argparse
Expand Down
2 changes: 0 additions & 2 deletions lib/opentypesvg/fonts2svg.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
or WOFF2.
"""

from __future__ import division, print_function

__version__ = '1.1.1'

import argparse
Expand Down
2 changes: 0 additions & 2 deletions lib/opentypesvg/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
Module that contains shared functionality.
"""

from __future__ import print_function

import os
import sys

Expand Down
2 changes: 0 additions & 2 deletions tests/options_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Copyright 2018 Adobe. All rights reserved.

from __future__ import print_function, division, absolute_import

import os
import sys
import unittest
Expand Down
12 changes: 1 addition & 11 deletions tests/shared_utils_test.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
# Copyright 2018 Adobe. All rights reserved.

from __future__ import print_function, division, absolute_import

import os
import shutil
import sys
import tempfile
import unittest

__all__ = ['StringIO']

# copied from fontTools/misc/py23.py
from io import StringIO as UnicodeIO
try:
from StringIO import StringIO # Py2
except ImportError:
StringIO = UnicodeIO # Py3
from io import StringIO

from opentypesvg import utils as shared_utils

Expand Down

0 comments on commit 00c3ba7

Please sign in to comment.