Skip to content

Commit a14922f

Browse files
committed
Misc changes to templates to reduce diffs
1 parent cb3f7ad commit a14922f

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

templates/configuration.mustache

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,8 @@ conf = {{{packageName}}}.Configuration(
370370
Set this to false to skip verifying SSL certificate when calling API
371371
from https server.
372372
"""
373-
self.ssl_ca_cert = ssl_ca_cert
373+
self.ssl_ca_cert = ssl_ca_cert
374+
374375
"""Set this to verify the peer using PEM (str) or DER (bytes)
375376
certificate data.
376377
"""
@@ -771,4 +772,4 @@ conf = {{{packageName}}}.Configuration(
771772
def host(self, value: str) -> None:
772773
"""Fix base path."""
773774
self._base_path = value
774-
self.server_index = None
775+
self.server_index = None

templates/rest.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class RESTClientObject:
6565
"cert_reqs": cert_reqs,
6666
"ca_certs": configuration.ssl_ca_cert,
6767
"cert_file": configuration.cert_file,
68-
"key_file": configuration.key_file,
68+
"key_file": configuration.key_file,
6969
}
7070
if configuration.assert_hostname is not None:
7171
pool_args['assert_hostname'] = (
@@ -244,4 +244,4 @@ class RESTClientObject:
244244
msg = "\n".join([type(e).__name__, str(e)])
245245
raise ApiException(status=0, reason=msg)
246246

247-
return RESTResponse(r)
247+
return RESTResponse(r)

ynab/rest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def __init__(self, configuration) -> None:
7575
"cert_reqs": cert_reqs,
7676
"ca_certs": configuration.ssl_ca_cert,
7777
"cert_file": configuration.cert_file,
78-
"key_file": configuration.key_file,
78+
"key_file": configuration.key_file,
7979
}
8080
if configuration.assert_hostname is not None:
8181
pool_args['assert_hostname'] = (

0 commit comments

Comments
 (0)