Skip to content

Commit

Permalink
Remove workaround that's not relevant since py2 isn't supported (#9716)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex committed Jun 10, 2023
1 parent 2d8a274 commit ae6268e
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions certbot/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@
if parse_version(setuptools_version) < parse_version(min_setuptools_version):
raise RuntimeError(f'setuptools {min_setuptools_version}+ is required')

# Workaround for https://bugs.python.org/issue8876, see
# https://bugs.python.org/issue8876#msg208792
# This can be removed when using Python 2.7.9 or later:
# https://hg.python.org/cpython/raw-file/v2.7.9/Misc/NEWS
if os.path.abspath(__file__).split(os.path.sep)[1] == 'vagrant':
del os.link


def read_file(filename, encoding='utf8'):
"""Read unicode from given file."""
with codecs.open(filename, encoding=encoding) as fd:
Expand Down

0 comments on commit ae6268e

Please sign in to comment.