Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TaggingBackends
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nyx
TaggingBackends
Commits
17ae908a
Commit
17ae908a
authored
1 year ago
by
François LAURENT
Browse files
Options
Downloads
Patches
Plain Diff
feat: handle escaped newlines
parent
5dd3b037
No related branches found
No related tags found
1 merge request
!14
Set of commits to be tagged v0.19
Pipeline
#136072
passed
1 year ago
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/taggingbackends/explorer.py
+6
-2
6 additions, 2 deletions
src/taggingbackends/explorer.py
with
6 additions
and
2 deletions
src/taggingbackends/explorer.py
+
6
−
2
View file @
17ae908a
...
@@ -201,7 +201,8 @@ Cannot find any Python package in project root directory:
...
@@ -201,7 +201,8 @@ Cannot find any Python package in project root directory:
line
=
line
[
len
(
prefix
):]
line
=
line
[
len
(
prefix
):]
if
line
.
startswith
(
"
root:
"
):
if
line
.
startswith
(
"
root:
"
):
line
=
line
[
5
:]
line
=
line
[
5
:]
log
(
line
.
lstrip
())
line
=
'
\n
'
.
join
(
line
.
lstrip
().
split
(
r
'
\n
'
))
log
(
line
)
return
return
# other Python warning messages from dependencies
# other Python warning messages from dependencies
if
line
.
startswith
(
"
warn(
"
)
or
line
.
startswith
(
"
warnings.warn(
"
):
if
line
.
startswith
(
"
warn(
"
)
or
line
.
startswith
(
"
warnings.warn(
"
):
...
@@ -260,13 +261,16 @@ Cannot find any Python package in project root directory:
...
@@ -260,13 +261,16 @@ Cannot find any Python package in project root directory:
lines
=
[]
lines
=
[]
for
line
in
msg
.
splitlines
():
for
line
in
msg
.
splitlines
():
lines
=
self
.
_parse_stdout
(
logger
,
lines
,
line
)
lines
=
self
.
_parse_stdout
(
logger
,
lines
,
line
)
if
lines
:
logger
.
info
(
"
\n
"
.
join
(
lines
))
if
ret
.
stderr
:
if
ret
.
stderr
:
msg
=
ret
.
stderr
.
decode
(
"
utf-8
"
)
msg
=
ret
.
stderr
.
decode
(
"
utf-8
"
)
lines
=
[]
lines
=
[]
for
line
in
msg
.
splitlines
():
for
line
in
msg
.
splitlines
():
self
.
_parse_stderr
(
logger
,
lines
,
line
)
self
.
_parse_stderr
(
logger
,
lines
,
line
)
if
lines
:
if
lines
:
raise
Exception
(
f
"
in
{
path
.
name
}
:
\n
"
+
"
\n
"
.
join
(
lines
))
msg
=
f
"
in
{
path
.
name
}
:
\n
"
+
"
\n
"
.
join
(
lines
)
raise
Exception
(
msg
)
sys
.
stderr
.
flush
()
sys
.
stderr
.
flush
()
sys
.
stdout
.
flush
()
sys
.
stdout
.
flush
()
return
ret
return
ret
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment