Skip to content

Commit

Permalink
Merge pull request #452 from ccordoba12/remove-last-py2
Browse files Browse the repository at this point in the history
Remove last bits of Python 2 support
  • Loading branch information
ccordoba12 authored Nov 21, 2020
2 parents 2ea4dd4 + 911a3ef commit 26df660
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
4 changes: 1 addition & 3 deletions qtconsole/rich_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

from qtpy import QtWidgets

from ipython_genutils import py3compat

#-----------------------------------------------------------------------------
# Constants
#-----------------------------------------------------------------------------
Expand Down Expand Up @@ -66,7 +64,7 @@ def export(self):
if dialog.exec_():
self.filename = dialog.selectedFiles()[0]
choice = dialog.selectedNameFilter()
html = py3compat.cast_unicode(self.control.document().toHtml())
html = self.control.document().toHtml()

# Configure the exporter.
if choice.startswith('XHTML'):
Expand Down
2 changes: 0 additions & 2 deletions setup.cfg

This file was deleted.

9 changes: 4 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
import sys

v = sys.version_info
if v[:2] < (2,7) or (v[0] >= 3 and v[:2] < (3,3)):
error = "ERROR: %s requires Python version 2.7 or 3.3 or above." % name
if v[0] >= 3 and v[:2] < (3,5)):
error = "ERROR: %s requires Python version 3.6 or above." % name
print(error, file=sys.stderr)
sys.exit(1)

Expand Down Expand Up @@ -78,7 +78,6 @@
],
extras_require = {
'test': ['flaky', 'pytest', 'pytest-qt'],
'test:python_version=="2.7"': ['mock'],
'doc': 'Sphinx>=1.3',
},
entry_points = {
Expand All @@ -92,11 +91,11 @@
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
)

Expand Down

0 comments on commit 26df660

Please sign in to comment.