Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
ed10d9cf
Commit
ed10d9cf
authored
Mar 21, 2019
by
Mickaël Schoentgen
Committed by
Jie Luo
Mar 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix several DeprecationWarning: invalid escape sequence (#5897)
Signed-off-by:
Mickaël Schoentgen
<
contact@tiger-222.fr
>
parent
a0a8c6cd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
result_parser.py
benchmarks/util/result_parser.py
+2
-2
text_format_test.py
...v2.5.0/tests/google/protobuf/internal/text_format_test.py
+1
-1
No files found.
benchmarks/util/result_parser.py
View file @
ed10d9cf
...
...
@@ -29,7 +29,7 @@ def __get_data_size(filename):
def
__extract_file_name
(
file_name
):
name_list
=
re
.
split
(
"[/
\
.]"
,
file_name
)
name_list
=
re
.
split
(
r
"[/\.]"
,
file_name
)
short_file_name
=
""
for
name
in
name_list
:
if
name
[:
14
]
==
"google_message"
:
...
...
@@ -213,7 +213,7 @@ def __parse_go_result(filename):
filename
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
+
'/'
+
filename
with
open
(
filename
)
as
f
:
for
line
in
f
:
result_list
=
re
.
split
(
"[
\
\t
]+"
,
line
)
result_list
=
re
.
split
(
r
"[\ \t]+"
,
line
)
if
result_list
[
0
][:
9
]
!=
"Benchmark"
:
continue
first_slash_index
=
result_list
[
0
]
.
find
(
'/'
)
...
...
python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/text_format_test.py
View file @
ed10d9cf
...
...
@@ -248,7 +248,7 @@ class TextFormatTest(unittest.TestCase):
.
replace
(
'e-0'
,
'e-'
)
.
replace
(
'e-0'
,
'e-'
)
# Floating point fields are printed with .0 suffix even if they are
# actualy integer numbers.
text
=
re
.
compile
(
'
\
.0$'
,
re
.
MULTILINE
)
.
sub
(
''
,
text
)
text
=
re
.
compile
(
r
'\.0$'
,
re
.
MULTILINE
)
.
sub
(
''
,
text
)
return
text
def
testMergeGolden
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment