Remove __future__ imports

This commit is contained in:
Nikita Karamov 2023-01-23 06:45:18 +01:00
parent a284dec2f9
commit 1ceeaf11e6
No known key found for this signature in database
GPG key ID: 41D6F71EE78E77CD
5 changed files with 0 additions and 8 deletions

View file

@ -44,9 +44,6 @@
# - if a <g> has only one element in it, collapse the <g> (ensure transform, etc are carried down) # - if a <g> has only one element in it, collapse the <g> (ensure transform, etc are carried down)
from __future__ import division # use "true" division instead of integer division in Python 2 (see PEP 238)
from __future__ import print_function # use print() as a function in Python 2 (see PEP 3105)
from __future__ import absolute_import # use absolute imports by default in Python 2 (see PEP 328)
import math import math
import optparse import optparse

View file

@ -41,7 +41,6 @@ Out[4]: [('M', [(0.60509999999999997, 0.5)])]
In [5]: svg_parser.parse('M 100-200') # Another edge case In [5]: svg_parser.parse('M 100-200') # Another edge case
Out[5]: [('M', [(100.0, -200.0)])] Out[5]: [('M', [(100.0, -200.0)])]
""" """
from __future__ import absolute_import
import re import re
from decimal import Decimal, getcontext from decimal import Decimal, getcontext

View file

@ -55,7 +55,6 @@ Multiple transformations are supported:
In [12]: svg_transform_parser.parse('translate(30 -30) rotate(36)') In [12]: svg_transform_parser.parse('translate(30 -30) rotate(36)')
Out[12]: [('translate', [30.0, -30.0]), ('rotate', [36.0])] Out[12]: [('translate', [30.0, -30.0]), ('rotate', [36.0])]
""" """
from __future__ import absolute_import
import re import re
from decimal import Decimal from decimal import Decimal

View file

@ -18,7 +18,6 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import absolute_import
import unittest import unittest

View file

@ -19,8 +19,6 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from __future__ import print_function # use print() as a function in Python 2 (see PEP 3105)
from __future__ import absolute_import # use absolute imports by default in Python 2 (see PEP 328)
import os import os
import sys import sys