Skip to content

Commit 95a8134

Browse files
committed
Remove Python 2 leftovers
- Fix unicode() call in scripts/make_rfc822.py (was broken on Py3) - Remove dead xfail test with unicode() call - Remove six from test dependencies (unused) - Remove # coding: utf-8 / # encoding: utf-8 from all files - Remove #!/usr/bin/env python from setup.py and scripts - Remove u'...' string prefixes from tests and docs
1 parent b1e0635 commit 95a8134

51 files changed

Lines changed: 23 additions & 102 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/_themes/alabaster/alabaster_theme_support.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,6 @@ class Alabaster(Style):
8181
Generic.Output: "#888", # class: 'go'
8282
Generic.Prompt: "#745334", # class: 'gp'
8383
Generic.Strong: "bold #000000", # class: 'gs'
84-
Generic.Subheading: "bold #800080", # class: 'gu'
84+
Generic.Subheading: "bold #800080", # class: 'g'
8585
Generic.Traceback: "bold #a40000", # class: 'gt'
8686
}

docs/_themes/flask_theme_support.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,6 @@ class FlaskyStyle(Style):
8181
Generic.Output: "#888", # class: 'go'
8282
Generic.Prompt: "#745334", # class: 'gp'
8383
Generic.Strong: "bold #000000", # class: 'gs'
84-
Generic.Subheading: "bold #800080", # class: 'gu'
84+
Generic.Subheading: "bold #800080", # class: 'g'
8585
Generic.Traceback: "bold #a40000", # class: 'gt'
8686
}

docs/conf_base.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@
5050
master_doc = 'index'
5151

5252
# General information about the project.
53-
project = u'python-emails'
54-
copyright = u'2015-2026, Sergey Lavrinenko'
53+
project = 'python-emails'
54+
copyright = '2015-2026, Sergey Lavrinenko'
5555

56-
# The version info for the project you're documenting, acts as replacement for
56+
# The version info for the project yo're documenting, acts as replacement for
5757
# |version| and |release|, also used in various other places throughout the
5858
# built documents.
5959
#
@@ -216,8 +216,8 @@
216216
# (source start file, target name, title,
217217
# author, documentclass [howto, manual, or own class]).
218218
latex_documents = [
219-
('index', 'python-emails.tex', u'python-emails Documentation',
220-
u'Sergey Lavrinenko', 'manual'),
219+
('index', 'python-emails.tex', 'python-emails Documentation',
220+
'Sergey Lavrinenko', 'manual'),
221221
]
222222

223223
# The name of an image file (relative to this directory) to place at the top of
@@ -246,8 +246,8 @@
246246
# One entry per manual page. List of tuples
247247
# (source start file, name, description, authors, manual section).
248248
man_pages = [
249-
('index', 'python-emails', u'python-emails Documentation',
250-
[u'Sergey Lavrinenko'], 1)
249+
('index', 'python-emails', 'python-emails Documentation',
250+
['Sergey Lavrinenko'], 1)
251251
]
252252

253253
# If true, show URL addresses after external links.
@@ -260,8 +260,8 @@
260260
# (source start file, target name, title, author,
261261
# dir menu entry, description, category)
262262
texinfo_documents = [
263-
('index', 'python-emails', u'python-emails Documentation',
264-
u'Sergey Lavrinenko', 'python-emails', 'One line description of project.',
263+
('index', 'python-emails', 'python-emails Documentation',
264+
'Sergey Lavrinenko', 'python-emails', 'One line description of project.',
265265
'Miscellaneous'),
266266
]
267267

emails/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# coding: utf-8
21
"""
32
python-emails
43
~~~~~~~~~~~~~

emails/backend/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
# encoding: utf-8
21
from .factory import ObjectFactory
32
from .smtp import SMTPBackend

emails/backend/factory.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# encoding: utf-8
21

32
def simple_dict2str(d):
43
# Simple dict serializer

emails/backend/inmemory/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# encoding: utf-8
21

32
__all__ = ['InMemoryBackend', ]
43

emails/backend/response.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# encoding: utf-8
21
from __future__ import annotations
32

43
from typing import Any

emails/backend/smtp/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
# encoding: utf-8
21

32
from .backend import SMTPBackend

emails/backend/smtp/backend.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# encoding: utf-8
21
from __future__ import annotations
32

43
import logging

0 commit comments

Comments
 (0)