Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zodbtools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
zodbtools
Commits
19f230c2
Commit
19f230c2
authored
Jan 30, 2019
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zodbdump: use r-strings for regexp
this silents a warning about \w being unknown escape sequence
parent
8d1b4442
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
zodbtools/zodbdump.py
zodbtools/zodbdump.py
+5
-2
No files found.
zodbtools/zodbdump.py
View file @
19f230c2
...
...
@@ -283,8 +283,11 @@ def main(argv):
# ----------------------------------------
# dump reading/parsing
_txn_re
=
re
.
compile
(
b'^txn (?P<tid>[0-9a-f]{16}) "(?P<status>.)"$'
)
_obj_re
=
re
.
compile
(
b'^obj (?P<oid>[0-9a-f]{16}) ((?P<delete>delete)|from (?P<from>[0-9a-f]{16})|(?P<size>[0-9]+) (?P<hashfunc>
\
w+):(?P<h
a
sh>[0-9a-f]+)(?P<hashonly> -)?)'
)
_txn_re
=
re
.
compile
(
br'^txn (?P<tid>[0-9a-f]{16}) "(?P<status>.)"$'
)
_obj_re
=
re
.
compile
(
br'^obj (?P<oid>[0-9a-f]{16}) ((?P<delete>delete)|from (?P<from>[0-9a-f]{16})|(?P<size>[0-9]+) (?P<hashfunc>\
w+):(?P<h
ash>[0-9a-f]+)(?P<hashonly> -)?)'
)
# _ioname returns name of the reader r, if it has one.
# if there is no name - '' is returned.
...
...
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