Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
295f4fa1
Commit
295f4fa1
authored
Feb 29, 2008
by
Christian Heimes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
I forgot to start the unit test suite first.
parent
f16baebf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
Lib/decimal.py
Lib/decimal.py
+1
-5
No files found.
Lib/decimal.py
View file @
295f4fa1
...
...
@@ -5441,7 +5441,7 @@ def _parse_format_specifier(format_spec):
format_dict
[
'precision'
]
=
1
# record whether return type should be str or unicode
format_dict
[
'unicode'
]
=
isinstance
(
format_spec
,
unicode
)
format_dict
[
'unicode'
]
=
True
return
format_dict
...
...
@@ -5486,10 +5486,6 @@ def _format_align(body, spec_dict):
half
=
len
(
padding
)
//
2
result
=
padding
[:
half
]
+
sign
+
body
+
padding
[
half
:]
# make sure that result is unicode if necessary
if
spec_dict
[
'unicode'
]:
result
=
unicode
(
result
)
return
result
##### Useful Constants (internal use only) ################################
...
...
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