Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Coscine Python SDK
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coscine
community features
Coscine Python SDK
Commits
6e32afc7
Commit
6e32afc7
authored
7 months ago
by
Romin
Browse files
Options
Downloads
Patches
Plain Diff
Fix deprecated datetime method
parent
79f2df73
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/coscine/resource.py
+2
-2
2 additions, 2 deletions
src/coscine/resource.py
with
2 additions
and
2 deletions
src/coscine/resource.py
+
2
−
2
View file @
6e32afc7
...
...
@@ -19,7 +19,7 @@ from posixpath import join as join_paths
import
logging
from
textwrap
import
wrap
from
urllib.parse
import
urlparse
,
parse_qs
from
isodate
import
parse_date
time
,
parse_date
from
isodate
import
parse_date
from
requests_toolbelt
import
MultipartEncoder
,
MultipartEncoderMonitor
from
tabulate
import
tabulate
from
tqdm
import
tqdm
...
...
@@ -1047,7 +1047,7 @@ class FileObject:
expires
=
parse_qs
(
urlparse
(
self
.
download_url
).
query
)[
"
Expires
"
][
0
]
else
:
expires
=
"
0
"
return
datetime
.
utc
fromtimestamp
(
float
(
expires
))
return
datetime
.
fromtimestamp
(
float
(
expires
))
@property
def
client
(
self
)
->
ApiClient
:
...
...
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