Skip to content

Commit faefb2e

Browse files
committed
fix build
1 parent eaf407f commit faefb2e

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

‎googleapiclient/discovery.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ def __init__(self):
142142
# Library-specific reserved words beyond Python keywords.
143143
RESERVED_WORDS = frozenset(["body"])
144144

145+
145146
# patch _write_lines to avoid munging '\r' into '\n'
146147
# ( https://bugs.python.org/issue18886 https://bugs.python.org/issue19003 )
147148
class _BytesGenerator(BytesGenerator):
@@ -1325,7 +1326,7 @@ def method(self, **kwargs):
13251326
enumDesc = paramdesc.get("enumDescriptions", [])
13261327
if enum and enumDesc:
13271328
docs.append(" Allowed values\n")
1328-
for (name, desc) in zip(enum, enumDesc):
1329+
for name, desc in zip(enum, enumDesc):
13291330
docs.append(" %s - %s\n" % (name, desc))
13301331
if "response" in methodDesc:
13311332
if methodName.endswith("_media"):

‎googleapiclient/mimeparse.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def fitness_and_quality_parsed(mime_type, parsed_ranges):
9595
best_fitness = -1
9696
best_fit_q = 0
9797
(target_type, target_subtype, target_params) = parse_media_range(mime_type)
98-
for (type, subtype, params) in parsed_ranges:
98+
for type, subtype, params in parsed_ranges:
9999
type_match = type == target_type or type == "*" or target_type == "*"
100100
subtype_match = (
101101
subtype == target_subtype or subtype == "*" or target_subtype == "*"

‎noxfile.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
import nox
1919

20-
BLACK_VERSION = "black==22.3.0"
20+
BLACK_VERSION = "black==23.7.0"
2121
ISORT_VERSION = "isort==5.10.1"
2222
BLACK_PATHS = [
2323
"apiclient",

‎tests/test_model.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464

6565
class TestPatch(unittest.TestCase):
6666
def test_patch(self):
67-
for (msg, orig, mod, expected_patch) in TEST_CASES:
67+
for msg, orig, mod, expected_patch in TEST_CASES:
6868
self.assertEqual(expected_patch, makepatch(orig, mod), msg=msg)
6969

7070

0 commit comments

Comments
 (0)