|
1 |
| -#!/usr/bin/python |
2 |
| -# |
3 |
| -# Copyright 2020 Kaggle Inc |
4 |
| -# |
5 |
| -# Licensed under the Apache License, Version 2.0 (the "License"); |
6 |
| -# you may not use this file except in compliance with the License. |
7 |
| -# You may obtain a copy of the License at |
8 |
| -# |
9 |
| -# http://www.apache.org/licenses/LICENSE-2.0 |
10 |
| -# |
11 |
| -# Unless required by applicable law or agreed to in writing, software |
12 |
| -# distributed under the License is distributed on an "AS IS" BASIS, |
13 |
| -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
14 |
| -# See the License for the specific language governing permissions and |
15 |
| -# limitations under the License. |
16 |
| - |
| 1 | +#!/usr/bin/python |
| 2 | +# |
| 3 | +# Copyright 2020 Kaggle Inc |
| 4 | +# |
| 5 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | +# you may not use this file except in compliance with the License. |
| 7 | +# You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, software |
| 12 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | +# See the License for the specific language governing permissions and |
| 15 | +# limitations under the License. |
| 16 | + |
17 | 17 | #!/usr/bin/python
|
18 | 18 | #
|
19 | 19 | # Copyright 2019 Kaggle Inc
|
|
82 | 82 |
|
83 | 83 |
|
84 | 84 | class KaggleApi(KaggleApi):
|
85 |
| - __version__ = '1.5.10' |
| 85 | + __version__ = '1.5.12' |
86 | 86 |
|
87 | 87 | CONFIG_NAME_PROXY = 'proxy'
|
88 | 88 | CONFIG_NAME_COMPETITION = 'competition'
|
@@ -2041,7 +2041,7 @@ def kernels_pull(self, kernel, path, metadata=False, quiet=True):
|
2041 | 2041 | script_path = effective_path
|
2042 | 2042 | file_name = os.path.basename(effective_path)
|
2043 | 2043 |
|
2044 |
| - with open(script_path, 'w') as f: |
| 2044 | + with open(script_path, 'w', encoding="utf-8") as f: |
2045 | 2045 | f.write(blob['source'])
|
2046 | 2046 |
|
2047 | 2047 | if metadata:
|
|
0 commit comments