Skip to content

Commit 6b03ea5

Browse files
authored
fix utf8 header in documentation (#8)
1 parent 71777ff commit 6b03ea5

File tree

13 files changed

+6
-24
lines changed

13 files changed

+6
-24
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
<p align="center">
42
<img src="https://ucloud-sdk.dl.ufileos.com/logos%2Flogo-mini.png" />
53
</p>

docs/core.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
Core
42
====
53

docs/helpers.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
Helpers
42
=======
53

docs/index.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
UCloud SDK Python 2
42
===================
53

docs/quick_start.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
QuickStart
42
==========
53

docs/services.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
UCloud SDK Services
42
===================
53

docs/usage.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
Usage
42
=====
53

examples/two-tier/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
# UCloud SDK Two-Tier Example
42

53
## What is the goal

examples/uhost/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
31
# UCloud SDK UHost Example
42

53
## What is the goal

scripts/migrate/_migrate.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ class Config:
2525

2626

2727
class Migrate(object):
28-
UTF8_HEADER = '# -*- coding: utf-8 -*-\n\n'
29-
3028
default_plugins_classes = {
3129
"py3to2": SDK3to2Transformer,
3230
"doc": DocTransformer,
@@ -79,7 +77,7 @@ def run(self, source_path: str, output_path: str):
7977
# convert destination code
8078
output_code = source_code
8179
for plugin in plugins:
82-
output_code = self.UTF8_HEADER + plugin.convert(source_code)
80+
output_code = plugin.convert(source_code)
8381

8482
# output to file
8583
os.makedirs(os.path.dirname(result_path), exist_ok=True)

0 commit comments

Comments
 (0)