Skip to content

Commit 538a75a

Browse files
authored
Remove python2 runner (#259)
* Remove python2 runner * Lint fixes
1 parent efeb037 commit 538a75a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/tests-and-lint.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
strategy:
1313
max-parallel: 4
1414
matrix:
15-
python-version: [2.7, 3.7, 3.8, 3.9, "3.10", 3.11]
15+
python-version: [3.7, 3.8, 3.9, "3.10", 3.11]
1616

1717
steps:
1818
- uses: actions/checkout@v2
1919
- name: Set up Python ${{ matrix.python-version }}
20-
uses: LizardByte/setup-python-action@v2024.919.163656
20+
uses: actions/setup-python@v5
2121
with:
2222
python-version: ${{ matrix.python-version }}
2323
- name: Install Dependencies

bmemcached/protocol.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def is_ip_address(address):
195195
return True
196196
except ValueError:
197197
return False
198-
198+
199199
if is_ip_address(server):
200200
return server, default_port
201201

test/test_server_parsing.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ def testIPv6(self):
3939
server = bmemcached.protocol.Protocol('2001:db8::2')
4040
self.assertEqual(server.host, '2001:db8::2')
4141
self.assertEqual(server.port, 11211)
42-
# Since `2001:db8::2:8080` is a valid IPv6 address,
42+
# Since `2001:db8::2:8080` is a valid IPv6 address,
4343
# it is ambiguous whether to split it into `2001:db8::2` and `8080`
44-
# or treat it as `2001:db8::2:8080`.
44+
# or treat it as `2001:db8::2:8080`.
4545
# Therefore, it will be treated as `2001:db8::2:8080`.
4646
server = bmemcached.protocol.Protocol('2001:db8::2:8080')
4747
self.assertEqual(server.host, '2001:db8::2:8080')

0 commit comments

Comments
 (0)