Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
jvoisin
mat2
Commits
14a4cddb
Commit
14a4cddb
authored
Apr 27, 2019
by
jvoisin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve the display of tarfile's members mtime
parent
8e41b098
Pipeline
#24312
failed with stages
in 25 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
libmat2/archive.py
libmat2/archive.py
+1
-1
No files found.
libmat2/archive.py
View file @
14a4cddb
...
...
@@ -239,7 +239,7 @@ class TarParser(ArchiveBasedAbstractParser):
assert
isinstance
(
member
,
tarfile
.
TarInfo
)
# please mypy
metadata
=
{}
if
member
.
mtime
!=
0
:
metadata
[
'mtime'
]
=
str
(
member
.
mtime
)
metadata
[
'mtime'
]
=
datetime
.
datetime
.
fromtimestamp
(
member
.
mtime
)
if
member
.
uid
!=
0
:
metadata
[
'uid'
]
=
str
(
member
.
uid
)
if
member
.
gid
!=
0
:
...
...
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