Skip to content

Clean up Python 2 compatibility wrappers #212

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
DifferentialOrange opened this issue Mar 17, 2022 · 1 comment · Fixed by #231
Closed

Clean up Python 2 compatibility wrappers #212

DifferentialOrange opened this issue Mar 17, 2022 · 1 comment · Fixed by #231
Assignees
Labels
code health Improve code readability, simplify maintenance and so on

Comments

@DifferentialOrange
Copy link
Member

DifferentialOrange commented Mar 17, 2022

It is expected to remove Python 2 support in #207 . There are many compatibility workaround all around the code, but it is not a part of #207 to clean them up. This ticket is created to track this activity.

Python 2.7 reached the end of its life on January 1st, 2020.

See also #207 (comment)

@DifferentialOrange DifferentialOrange added code health Improve code readability, simplify maintenance and so on teamE and removed 2sp labels Mar 17, 2022
DifferentialOrange added a commit that referenced this issue Mar 17, 2022
Python 2.7 reached the end of its life on January 1st, 2020 [1]. Since
it would be a waste to ignore several Python 3.x features in master
discovery implementation, we decided to drop Python 2 support here.

Python 2 workaround cleanup activities are expected to be solved as
part of #212 solution.

1. https://www.python.org/doc/sunset-python-2/

Part of #196
DifferentialOrange added a commit that referenced this issue Mar 23, 2022
Python 2.7 reached the end of its life on January 1st, 2020 [1]. Since
it would be a waste to ignore several Python 3.x features in master
discovery implementation, we decided to drop Python 2 support here.

Python 2 workaround cleanup activities are expected to be solved as
part of #212 solution.

1. https://www.python.org/doc/sunset-python-2/

Part of #196
DifferentialOrange added a commit that referenced this issue Mar 23, 2022
Python 2.7 reached the end of its life on January 1st, 2020 [1]. Since
it would be a waste to ignore several Python 3.x features in master
discovery implementation, we decided to drop Python 2 support here.

Python 2 workaround cleanup activities are expected to be solved as
part of #212 solution.

1. https://www.python.org/doc/sunset-python-2/

Part of #196
DifferentialOrange added a commit that referenced this issue Mar 23, 2022
Python 2.7 reached the end of its life on January 1st, 2020 [1]. Since
it would be a waste to ignore several Python 3.x features in master
discovery implementation, we decided to drop Python 2 support here.

Python 2 workaround cleanup activities are expected to be solved as
part of #212 solution.

1. https://www.python.org/doc/sunset-python-2/

Part of #196
DifferentialOrange added a commit that referenced this issue Apr 19, 2022
Python 2.7 reached the end of its life on January 1st, 2020 [1]. Since
it would be a waste to ignore several Python 3.x features in master
discovery implementation, we decided to drop Python 2 support here.

Python 2 workaround cleanup activities are expected to be solved as
part of #212 solution.

1. https://www.python.org/doc/sunset-python-2/

Part of #196
DifferentialOrange added a commit that referenced this issue Apr 19, 2022
Python 2.7 reached the end of its life on January 1st, 2020 [1]. Since
it would be a waste to ignore several Python 3.x features in master
discovery implementation, we decided to drop Python 2 support here.

Python 2 workaround cleanup activities are expected to be solved as
part of #212 solution.

1. https://www.python.org/doc/sunset-python-2/

Part of #196
DifferentialOrange added a commit that referenced this issue Apr 19, 2022
Python 2.7 reached the end of its life on January 1st, 2020 [1]. Since
it would be a waste to ignore several Python 3.x features in master
discovery implementation, we decided to drop Python 2 support here.

Python 2 workaround cleanup activities are expected to be solved as
part of #212 solution.

1. https://www.python.org/doc/sunset-python-2/

Part of #196
DifferentialOrange added a commit that referenced this issue Apr 20, 2022
Python 2.7 reached the end of its life on January 1st, 2020 [1]. Since
it would be a waste to ignore several Python 3.x features in master
discovery implementation, we decided to drop Python 2 support here.

Python 2 workaround cleanup activities are expected to be solved as
part of #212 solution.

1. https://www.python.org/doc/sunset-python-2/

Part of #196
DifferentialOrange added a commit that referenced this issue Apr 20, 2022
Python 2.7 reached the end of its life on January 1st, 2020 [1]. Since
it would be a waste to ignore several Python 3.x features in master
discovery implementation, we decided to drop Python 2 support here.

Python 2 workaround cleanup activities are expected to be solved as
part of #212 solution.

1. https://www.python.org/doc/sunset-python-2/

Part of #196
DifferentialOrange added a commit that referenced this issue Apr 20, 2022
Python 2.7 reached the end of its life on January 1st, 2020 [1]. Since
it would be a waste to ignore several Python 3.x features in master
discovery implementation, we decided to drop Python 2 support here.

Python 2 workaround cleanup activities are expected to be solved as
part of #212 solution.

1. https://www.python.org/doc/sunset-python-2/

Part of #196
@DifferentialOrange DifferentialOrange self-assigned this Sep 9, 2022
DifferentialOrange added a commit that referenced this issue Sep 9, 2022
The built-in basestring abstract type was removed in Python 3 [1]. str
must be used for string and bytes for byte objects. long type was unified
with int in Python 3 [2].

1. https://docs.python.org/3/whatsnew/3.0.html?highlight=basestring
2. https://peps.python.org/pep-0237/

Part of #212
DifferentialOrange added a commit that referenced this issue Sep 9, 2022
Since Python 3 the default encoding of source files is already UTF-8 [1].
Unless instruction says something other than some variation of "utf-8",
it has no effect [2].

1. https://docs.python.org/3/howto/unicode.html#the-string-type
2. https://stackoverflow.com/questions/4872007/where-does-this-come-from-coding-utf-8

Part of #212
DifferentialOrange added a commit that referenced this issue Sep 9, 2022
StandardError was removed in Python 3 [1]. PEP 249 footnote 10 [2]
declares that database modules targeting Python 3 should use Exception
as base class instead.

1. https://docs.python.org/3/whatsnew/3.0.html?highlight=standarderror
2. https://peps.python.org/pep-0249/#footnotes

Part of #212
DifferentialOrange added a commit that referenced this issue Sep 9, 2022
collections.abc is not a part of collections since Python 3.3 [1].

1. https://docs.python.org/3/library/collections.abc.html

Part of #212
DifferentialOrange added a commit that referenced this issue Sep 9, 2022
The built-in basestring abstract type was removed in Python 3 [1]. str
must be used for string and bytes for byte objects. long type was unified
with int in Python 3 [2].

1. https://docs.python.org/3/whatsnew/3.0.html?highlight=basestring
2. https://peps.python.org/pep-0237/

Part of #212
DifferentialOrange added a commit that referenced this issue Sep 9, 2022
Since Python 3 the default encoding of source files is already UTF-8 [1].
Unless instruction says something other than some variation of "utf-8",
it has no effect [2].

1. https://docs.python.org/3/howto/unicode.html#the-string-type
2. https://stackoverflow.com/questions/4872007/where-does-this-come-from-coding-utf-8

Part of #212
DifferentialOrange added a commit that referenced this issue Sep 9, 2022
StandardError was removed in Python 3 [1]. PEP 249 footnote 10 [2]
declares that database modules targeting Python 3 should use Exception
as base class instead.

1. https://docs.python.org/3/whatsnew/3.0.html?highlight=standarderror
2. https://peps.python.org/pep-0249/#footnotes

Part of #212
DifferentialOrange added a commit that referenced this issue Sep 9, 2022
collections.abc is not a part of collections since Python 3.3 [1].

1. https://docs.python.org/3/library/collections.abc.html

Part of #212
DifferentialOrange added a commit that referenced this issue Sep 9, 2022
The built-in basestring abstract type was removed in Python 3 [1]. str
must be used for string and bytes for byte objects. long type was unified
with int in Python 3 [2].

1. https://docs.python.org/3/whatsnew/3.0.html?highlight=basestring
2. https://peps.python.org/pep-0237/

Part of #212
DifferentialOrange added a commit that referenced this issue Sep 26, 2022
Since Python 3 the default encoding of source files is already UTF-8 [1].
Unless instruction says something other than some variation of "utf-8",
it has no effect [2].

1. https://docs.python.org/3/howto/unicode.html#the-string-type
2. https://stackoverflow.com/questions/4872007/where-does-this-come-from-coding-utf-8

Part of #212
DifferentialOrange added a commit that referenced this issue Sep 26, 2022
StandardError was removed in Python 3 [1]. PEP 249 footnote 10 [2]
declares that database modules targeting Python 3 should use Exception
as base class instead.

1. https://docs.python.org/3/whatsnew/3.0.html?highlight=standarderror
2. https://peps.python.org/pep-0249/#footnotes

Part of #212
DifferentialOrange added a commit that referenced this issue Sep 26, 2022
DifferentialOrange added a commit that referenced this issue Sep 26, 2022
DifferentialOrange added a commit that referenced this issue Oct 5, 2022
The built-in basestring abstract type was removed in Python 3 [1]. `str`
must be used for strings and `bytes` for byte objects. `long` type was
unified with `int` in Python 3 [2].

1. https://docs.python.org/3/whatsnew/3.0.html?highlight=basestring
2. https://peps.python.org/pep-0237/

Part of #212
DifferentialOrange added a commit that referenced this issue Oct 5, 2022
Since Python 3 the default encoding of source files is already UTF-8 [1].
Unless instruction says something other than some variation of "utf-8",
it has no effect [2].

1. https://docs.python.org/3/howto/unicode.html#the-string-type
2. https://stackoverflow.com/questions/4872007/where-does-this-come-from-coding-utf-8

Part of #212
DifferentialOrange added a commit that referenced this issue Oct 5, 2022
StandardError was removed in Python 3 [1]. PEP 249 footnote 10 [2]
declares that database modules targeting Python 3 should use Exception
as base class instead.

1. https://docs.python.org/3/whatsnew/3.0.html?highlight=standarderror
2. https://peps.python.org/pep-0249/#footnotes

Part of #212
DifferentialOrange added a commit that referenced this issue Oct 5, 2022
DifferentialOrange added a commit that referenced this issue Oct 5, 2022
DifferentialOrange added a commit that referenced this issue Oct 5, 2022
The built-in `basestring` abstract type was removed in Python 3 [1].
`str` must be used for strings and `bytes` for byte objects. `long` type
was unified with `int` in Python 3 [2].

1. https://docs.python.org/3/whatsnew/3.0.html?highlight=basestring
2. https://peps.python.org/pep-0237/

Part of #212
DifferentialOrange added a commit that referenced this issue Oct 5, 2022
Since Python 3 the default encoding of source files is already UTF-8 [1].
Unless instruction says something other than some variation of "utf-8",
it has no effect [2].

1. https://docs.python.org/3/howto/unicode.html#the-string-type
2. https://stackoverflow.com/questions/4872007/where-does-this-come-from-coding-utf-8

Part of #212
DifferentialOrange added a commit that referenced this issue Oct 5, 2022
StandardError was removed in Python 3 [1]. PEP 249 footnote 10 [2]
declares that database modules targeting Python 3 should use Exception
as base class instead.

1. https://docs.python.org/3/whatsnew/3.0.html?highlight=standarderror
2. https://peps.python.org/pep-0249/#footnotes

Part of #212
DifferentialOrange added a commit that referenced this issue Oct 5, 2022
DifferentialOrange added a commit that referenced this issue Oct 5, 2022
DifferentialOrange added a commit that referenced this issue Oct 6, 2022
The built-in `basestring` abstract type was removed in Python 3 [1].
`str` must be used for strings and `bytes` for byte objects. `long` type
was unified with `int` in Python 3 [2].

1. https://docs.python.org/3/whatsnew/3.0.html?highlight=basestring
2. https://peps.python.org/pep-0237/

Part of #212
DifferentialOrange added a commit that referenced this issue Oct 6, 2022
Since Python 3 the default encoding of source files is already UTF-8 [1].
Unless instruction says something other than some variation of "utf-8",
it has no effect [2].

1. https://docs.python.org/3/howto/unicode.html#the-string-type
2. https://stackoverflow.com/questions/4872007/where-does-this-come-from-coding-utf-8

Part of #212
DifferentialOrange added a commit that referenced this issue Oct 6, 2022
StandardError was removed in Python 3 [1]. PEP 249 footnote 10 [2]
declares that database modules targeting Python 3 should use Exception
as base class instead.

1. https://docs.python.org/3/whatsnew/3.0.html?highlight=standarderror
2. https://peps.python.org/pep-0249/#footnotes

Part of #212
DifferentialOrange added a commit that referenced this issue Oct 6, 2022
DifferentialOrange added a commit that referenced this issue Oct 6, 2022
DifferentialOrange added a commit that referenced this issue Oct 10, 2022
The built-in `basestring` abstract type was removed in Python 3 [1].
`str` must be used for strings and `bytes` for byte objects. `long` type
was unified with `int` in Python 3 [2].

1. https://docs.python.org/3/whatsnew/3.0.html?highlight=basestring
2. https://peps.python.org/pep-0237/

Part of #212
DifferentialOrange added a commit that referenced this issue Oct 10, 2022
Since Python 3 the default encoding of source files is already UTF-8 [1].
Unless instruction says something other than some variation of "utf-8",
it has no effect [2].

1. https://docs.python.org/3/howto/unicode.html#the-string-type
2. https://stackoverflow.com/questions/4872007/where-does-this-come-from-coding-utf-8

Part of #212
DifferentialOrange added a commit that referenced this issue Oct 10, 2022
StandardError was removed in Python 3 [1]. PEP 249 footnote 10 [2]
declares that database modules targeting Python 3 should use Exception
as base class instead.

1. https://docs.python.org/3/whatsnew/3.0.html?highlight=standarderror
2. https://peps.python.org/pep-0249/#footnotes

Part of #212
DifferentialOrange added a commit that referenced this issue Oct 10, 2022
DifferentialOrange added a commit that referenced this issue Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code health Improve code readability, simplify maintenance and so on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants