Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format code base with latest black #309

Merged
merged 1 commit into from
Apr 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion kinto_http/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def reset(self):

def _build_requests(self):
requests = []
for (method, url, payload, headers) in self.requests:
for method, url, payload, headers in self.requests:
# Strip the prefix in batch requests.
request = {"method": method.upper(), "path": url.replace("v1/", "")}

Expand Down
1 change: 0 additions & 1 deletion kinto_http/cli_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ def add_parser_options(
include_collection=True,
**kwargs
):

if parser is None:
parser = argparse.ArgumentParser(**kwargs)

Expand Down
7 changes: 0 additions & 7 deletions kinto_http/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ def server_info(self) -> Dict:
def create_bucket(
self, *, id=None, data=None, permissions=None, safe=True, if_not_exists=False
) -> Dict:

if id is None and data:
id = data.get("id", None)

Expand All @@ -260,7 +259,6 @@ def create_bucket(
def update_bucket(
self, *, id=None, data=None, permissions=None, safe=True, if_match=None
) -> Dict:

if id is None and data:
id = data.get("id", None)

Expand Down Expand Up @@ -367,7 +365,6 @@ def get_groups(self, *, bucket=None, **kwargs) -> List[Dict]:
def create_group(
self, *, id=None, bucket=None, data=None, permissions=None, safe=True, if_not_exists=False
) -> Dict:

if id is None and data:
id = data.get("id", None)

Expand Down Expand Up @@ -403,7 +400,6 @@ def create_group(
def update_group(
self, *, id=None, bucket=None, data=None, permissions=None, safe=True, if_match=None
) -> Dict:

if id is None and data:
id = data.get("id", None)

Expand Down Expand Up @@ -500,7 +496,6 @@ def get_collections(self, *, bucket=None, **kwargs) -> List[Dict]:
def create_collection(
self, *, id=None, bucket=None, data=None, permissions=None, safe=True, if_not_exists=False
) -> Dict:

if id is None and data:
id = data.get("id", None)

Expand Down Expand Up @@ -537,7 +532,6 @@ def create_collection(
def update_collection(
self, *, id=None, bucket=None, data=None, permissions=None, safe=True, if_match=None
) -> Dict:

if id is None and data:
id = data.get("id", None)

Expand Down Expand Up @@ -705,7 +699,6 @@ def create_record(
safe=True,
if_not_exists=False,
) -> Dict:

id = id or data.get("id", None)
if if_not_exists:
return self._create_if_not_exists(
Expand Down