Skip to content
GitLab
探索
项目
群组
代码片段
项目
群组
代码片段
/
帮助
帮助
支持
社区论坛
快捷键
?
提交反馈
登录
切换导航
菜单
打开侧边栏
ExternalRepo
isort
提交
bcfb0220
提交
bcfb0220
编辑于
3年前
作者:
Aniruddha
浏览文件
操作
下载
电子邮件补丁
差异文件
Add check for missing parenthesis at EOF
上级
c6a41965
main
ci/general-ci-improvements
ci/release-workflow
dependabot/pip/black-24.3.0
dependabot/pip/idna-3.7
dependabot/pip/jinja2-3.1.4
hotfix-5.11.5
prepare-release-6.0.0
5.13.2
5.13.1
5.13.0
5.12.0
5.11.5
5.11.4
5.11.3
5.11.2
5.11.1
5.11.0
v5.11.3
无相关合并请求
变更
1
Hide whitespace changes
Inline
Side-by-side
显示
1 个更改的文件
isort/core.py
+5
-1
isort/core.py
有
5 个添加
和
1 个删除
+5
-1
isort/core.py
+
5
-
1
浏览文件 @
bcfb0220
...
...
@@ -7,7 +7,7 @@ import isort.literal
from
isort.settings
import
DEFAULT_CONFIG
,
Config
from
.
import
output
,
parse
from
.exceptions
import
FileSkipComment
from
.exceptions
import
ExistingSyntaxErrors
,
FileSkipComment
from
.format
import
format_natural
,
remove_whitespace
from
.settings
import
FILE_SKIP_COMMENTS
...
...
@@ -303,6 +303,10 @@ def process(
else
:
while
")"
not
in
stripped_line
:
line
=
input_stream
.
readline
()
if
not
line
:
# end of file without closing parenthesis
raise
ExistingSyntaxErrors
(
"Parenthesis is not closed"
)
stripped_line
=
line
.
strip
().
split
(
"#"
)[
0
]
import_statement
+=
line
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
支持
Markdown
0%
请重试
或
添加新附件
.
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录
菜单
探索
项目
群组
代码片段