Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf0ac7ea

Browse files
sunmy2019Erotemic
authored andcommitted
nit: remove unnecessary variable
1 parent689a13a commitf0ac7ea

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

‎Modules/main.c‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -254,9 +254,8 @@ static PyObject *dedent_utf8_bytes(PyObject *bytes) {
254254
char*leading_whitespace_end=NULL;
255255

256256
// scan the whole line
257-
charc=0;
258-
while (iter<end&& (c=*iter)!='\n') {
259-
if (!leading_whitespace_end&&c!=' '&&c!='\t') {
257+
while (iter<end&&*iter!='\n') {
258+
if (!leading_whitespace_end&&*iter!=' '&&*iter!='\t') {
260259
if (iter==line_start) {
261260
// some line has no indent, fast exit!
262261
returnbytes;
@@ -266,8 +265,6 @@ static PyObject *dedent_utf8_bytes(PyObject *bytes) {
266265
++iter;
267266
}
268267

269-
// we reach the end of a line
270-
271268
// if this line has all white space, skip it
272269
if (!leading_whitespace_end) {
273270
continue;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp