Skip to content

Commit

Permalink
chore: resolve formatting issues so black==23.7.0 check passes
Browse files Browse the repository at this point in the history
In order to upgrade to `black==23.7.0` some re-formatting is required.

Reformat the code, so that the Dependabot PR will pass CI.
  • Loading branch information
JohnVillalovos committed Aug 23, 2023
1 parent 9dc72f0 commit f2cad70
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion imapclient/response_lexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ def __iter__(self):


class PushableIterator(object):

NO_MORE = object()

def __init__(self, it):
Expand Down
1 change: 0 additions & 1 deletion imapclient/tls.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@


def wrap_socket(sock, ssl_context, host):

if not hasattr(ssl, "create_default_context"):
# Python 2.7.0 - 2.7.8 do not have the concept of ssl contexts.
# Thus we have to use the less flexible and legacy way of wrapping the
Expand Down
1 change: 0 additions & 1 deletion livetest.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@


class _TestBase(unittest.TestCase):

conf = None
use_uid = True

Expand Down
4 changes: 2 additions & 2 deletions tests/test_imap_utf7.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ class IMAP4UTF7TestCase(unittest.TestCase):
]

def test_encode(self):
for (input, output) in self.tests:
for input, output in self.tests:
encoded = encode(input)
self.assertIsInstance(encoded, bytes)
self.assertEqual(encoded, output)

def test_decode(self):
for (input, output) in self.tests:
for input, output in self.tests:
decoded = decode(output)
self.assertIsInstance(decoded, str)
self.assertEqual(input, decoded)
Expand Down

0 comments on commit f2cad70

Please sign in to comment.