Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
circuitpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
circuitpython
Commits
2f7827ba
Commit
2f7827ba
authored
Sep 29, 2017
by
Paul Sokolovsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools/upip: Upgrade to 1.2.2.
TLS SNI support, fixes after making str.rstrip() behavior compliant.
parent
bdc6e86e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
tools/upip.py
tools/upip.py
+1
-1
tools/upip_utarfile.py
tools/upip_utarfile.py
+3
-3
No files found.
tools/upip.py
View file @
2f7827ba
...
...
@@ -122,7 +122,7 @@ def url_open(url):
s
.
connect
(
addr
)
if
proto
==
"https:"
:
s
=
ussl
.
wrap_socket
(
s
)
s
=
ussl
.
wrap_socket
(
s
,
server_hostname
=
host
)
if
warn_ussl
:
print
(
"Warning: %s SSL certificate is not validated"
%
host
)
warn_ussl
=
False
...
...
tools/upip_utarfile.py
View file @
2f7827ba
...
...
@@ -3,7 +3,7 @@ import uctypes
# http://www.gnu.org/software/tar/manual/html_node/Standard.html
TAR_HEADER
=
{
"name"
:
(
uctypes
.
ARRAY
|
0
,
uctypes
.
UINT8
|
100
),
"size"
:
(
uctypes
.
ARRAY
|
124
,
uctypes
.
UINT8
|
1
2
),
"size"
:
(
uctypes
.
ARRAY
|
124
,
uctypes
.
UINT8
|
1
1
),
}
DIRTYPE
=
"dir"
...
...
@@ -75,8 +75,8 @@ class TarFile:
return
None
d
=
TarInfo
()
d
.
name
=
str
(
h
.
name
,
"utf-8"
).
rstrip
()
d
.
size
=
int
(
bytes
(
h
.
size
)
.
rstrip
()
,
8
)
d
.
name
=
str
(
h
.
name
,
"utf-8"
).
rstrip
(
"
\0
"
)
d
.
size
=
int
(
bytes
(
h
.
size
),
8
)
d
.
type
=
[
REGTYPE
,
DIRTYPE
][
d
.
name
[
-
1
]
==
"/"
]
self
.
subf
=
d
.
subf
=
FileSection
(
self
.
f
,
d
.
size
,
roundup
(
d
.
size
,
512
))
return
d
...
...
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