Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
pygolang
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
pygolang
Commits
8e5864df
Commit
8e5864df
authored
Sep 09, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strconv: Fix thinko in _bstr
In Python, %-formatting needs % operator, not ",".
parent
3aca691e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
golang/strconv.py
golang/strconv.py
+1
-1
No files found.
golang/strconv.py
View file @
8e5864df
...
...
@@ -35,7 +35,7 @@ def _bstr(s): # -> sbytes, wasunicode
elif
isinstance
(
s
,
six
.
text_type
):
# py2: unicode py3: str
wasunicode
=
True
else
:
raise
TypeError
(
"_bstr: invalid type %s"
,
type
(
s
))
raise
TypeError
(
"_bstr: invalid type %s"
%
type
(
s
))
if
wasunicode
:
# py2: unicode py3: str -> bytes
s
=
s
.
encode
(
'UTF-8'
)
...
...
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