Skip to content

Commit 40dfe7f

Browse files
committed
merge from upstream and fix python again
1 parent 2bfd6a2 commit 40dfe7f

14 files changed

Lines changed: 16 additions & 5 deletions

File tree

src/helpers/code-builder.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var CodeBuilder = function (indentation, join) {
1717

1818
/**
1919
* Add given indentation level to given string
20-
* @param {number} [indentationLevel=0] Desired level of indentation for this line
20+
* @param {number} [indentationLevel=0] Desired level of indentation for this line
2121
* @param {string} line Line of code
2222
* @return {string}
2323
*/
@@ -40,7 +40,7 @@ CodeBuilder.prototype.buildLine = function (indentationLevel, line) {
4040

4141
/**
4242
* Add a line at the top of current lines with given indentation level
43-
* @param {number} [indentationLevel=0] Desired level of indentation for this line
43+
* @param {number} [indentationLevel=0] Desired level of indentation for this line
4444
* @param {string} line Line of code
4545
* @return {this}
4646
*/
@@ -52,7 +52,7 @@ CodeBuilder.prototype.unshift = function (indentationLevel, str) {
5252

5353
/**
5454
* Add a line at the end of current lines with given indentation level
55-
* @param {number} [indentationLevel=0] Desired level of indentation for this line
55+
* @param {number} [indentationLevel=0] Desired level of indentation for this line
5656
* @param {string} line Line of code
5757
* @return {this}
5858
*/
@@ -74,7 +74,7 @@ CodeBuilder.prototype.blank = function () {
7474

7575
/**
7676
* Concatenate all current lines using the given lineJoin
77-
* @return {string}
77+
* @return {string}
7878
*/
7979
CodeBuilder.prototype.join = function () {
8080
return this.code.join(this.lineJoin)

src/targets/python/python3.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ module.exports = function (source, options) {
7575
.push('res = conn.getresponse()')
7676
.push('data = res.read()')
7777
.blank()
78-
.push('print(res.status)')
7978
.push('print(data.decode("utf-8"))')
8079

8180
return code.join()

test/fixtures/output/python/python3/application-form-encoded.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@
1010

1111
res = conn.getresponse()
1212
data = res.read()
13+
1314
print(data.decode("utf-8"))

test/fixtures/output/python/python3/application-json.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@
1010

1111
res = conn.getresponse()
1212
data = res.read()
13+
1314
print(data.decode("utf-8"))

test/fixtures/output/python/python3/cookies.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@
88

99
res = conn.getresponse()
1010
data = res.read()
11+
1112
print(data.decode("utf-8"))

test/fixtures/output/python/python3/custom-method.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@
66

77
res = conn.getresponse()
88
data = res.read()
9+
910
print(data.decode("utf-8"))

test/fixtures/output/python/python3/full.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@
1414

1515
res = conn.getresponse()
1616
data = res.read()
17+
1718
print(data.decode("utf-8"))

test/fixtures/output/python/python3/headers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@
1111

1212
res = conn.getresponse()
1313
data = res.read()
14+
1415
print(data.decode("utf-8"))

test/fixtures/output/python/python3/https.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@
66

77
res = conn.getresponse()
88
data = res.read()
9+
910
print(data.decode("utf-8"))

test/fixtures/output/python/python3/multipart-data.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@
1010

1111
res = conn.getresponse()
1212
data = res.read()
13+
1314
print(data.decode("utf-8"))

0 commit comments

Comments
 (0)