Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
geomag-algorithms
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ghsc
National Geomagnetism Program
geomag-algorithms
Commits
58d5fa2e
Commit
58d5fa2e
authored
4 years ago
by
Jeremy M Fee
Browse files
Options
Downloads
Plain Diff
Merge branch 'Update-make_cal' into 'master'
Update urllib2 to urllib See merge request
!44
parents
92ad7b88
a436ee3c
No related branches found
No related tags found
2 merge requests
!146
Release CMO metadata to production
,
!44
Update urllib2 to urllib
Pipeline
#24929
passed
4 years ago
Stage: test
Stage: integration
Stage: scan
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/make_cal.py
+3
-3
3 additions, 3 deletions
bin/make_cal.py
with
3 additions
and
3 deletions
bin/make_cal.py
+
3
−
3
View file @
58d5fa2e
...
...
@@ -11,7 +11,7 @@ import itertools
import
json
import
os
import
sys
import
urllib
2
import
urllib
.request
############################################################################
...
...
@@ -54,7 +54,7 @@ url = (
try
:
print
(
f
"
Loading data from web service
\n\t
{
url
}
"
,
file
=
sys
.
stderr
)
response
=
urllib
2
.
urlopen
(
response
=
urllib
.
request
.
urlopen
(
url
,
# allow environment certificate bundle override
cafile
=
os
.
environ
.
get
(
"
SSL_CERT_FILE
"
),
...
...
@@ -125,7 +125,7 @@ calfile.append("")
filename
=
FILENAME_FORMAT
.
format
(
OBSERVATORY
=
OBSERVATORY
,
YEAR
=
YEAR
)
print
(
"
Writing cal file to {}
"
.
format
(
filename
),
file
=
sys
.
stderr
)
with
open
(
filename
,
"
wb
"
,
-
1
)
as
f
:
f
.
write
(
os
.
linesep
.
join
(
calfile
))
f
.
write
(
os
.
linesep
.
join
(
calfile
)
.
encode
()
)
"""
...
...
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