Skip to content

Commit

Permalink
Remove Python 2 compatibility code
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Feb 10, 2021
1 parent 94f7437 commit ee2a85d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
8 changes: 2 additions & 6 deletions jaraco/imaging.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,22 @@
# -*- coding: utf-8 -*-

"""
Copyright © 2008,2010,2011,2013 Jason R. Coombs
"""

from __future__ import division, unicode_literals

import argparse
import io
import struct
import operator
import functools
from collections import namedtuple

import PIL.Image
import six
import pkg_resources
import jaraco.clipboard


def calc_aspect(size):
"aspect = size[0] / size[1] # width/height"
return six.moves.reduce(operator.truediv, size)
return functools.reduce(operator.truediv, size)


Dimensions = namedtuple('Dimensions', 'width height')
Expand Down
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ packages = find_namespace:
include_package_data = true
python_requires = >=3.6
install_requires =
six
jaraco.clipboard
pillow
setup_requires = setuptools_scm[toml] >= 3.4.1
Expand Down

0 comments on commit ee2a85d

Please sign in to comment.