Skip to content

Commit 3315188

Browse files
authored
Fix escaped-quote issue in HTTP requests (#702)
Fix escaped-quote issue in HTTP requests, and prepare for new beta release. Note: I incremented the release number in a previous PR.
1 parent 13724a0 commit 3315188

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
Changelog
22
====
3+
### 1.7.3b1
4+
5+
* Fix escaped-quote issue in HTTP requests.
6+
37
### 1.7.3b0
48

59
* Remove Swagger. No user-visible changes to the command-line tool. However, projects that

kaggle/api/kaggle_api_extended.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2369,7 +2369,7 @@ def kernels_initialize_cli(self, folder=None):
23692369
meta_file = self.kernels_initialize(folder)
23702370
print('Kernel metadata template written to: ' + meta_file)
23712371

2372-
def kernels_push(self, folder, timeout):
2372+
def kernels_push(self, folder, timeout=None):
23732373
""" Read the metadata file and kernel files from a notebook, validate
23742374
both, and use the Kernel API to push to Kaggle if all is valid.
23752375
Parameters
@@ -2465,7 +2465,7 @@ def kernels_push(self, folder, timeout):
24652465
# but the server expects just one
24662466
if 'source' in cell and isinstance(cell['source'], list):
24672467
cell['source'] = ''.join(cell['source'])
2468-
script_body = json.dumps(json_body).replace("'", "\\'")
2468+
script_body = json.dumps(json_body)
24692469

24702470
with self.build_kaggle_client() as kaggle:
24712471
request = ApiSaveKernelRequest()

0 commit comments

Comments
 (0)