refactor: Indent ... for visual purposes (#7744)
This commit is contained in:
committed by
GitHub
parent
e8915097c4
commit
9bba42eca8
@@ -4,27 +4,27 @@ def oct_to_decimal(oct_string: str) -> int:
|
||||
|
||||
>>> oct_to_decimal("")
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
...
|
||||
ValueError: Empty string was passed to the function
|
||||
>>> oct_to_decimal("-")
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
...
|
||||
ValueError: Non-octal value was passed to the function
|
||||
>>> oct_to_decimal("e")
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
...
|
||||
ValueError: Non-octal value was passed to the function
|
||||
>>> oct_to_decimal("8")
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
...
|
||||
ValueError: Non-octal value was passed to the function
|
||||
>>> oct_to_decimal("-e")
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
...
|
||||
ValueError: Non-octal value was passed to the function
|
||||
>>> oct_to_decimal("-8")
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
...
|
||||
ValueError: Non-octal value was passed to the function
|
||||
>>> oct_to_decimal("1")
|
||||
1
|
||||
@@ -38,7 +38,7 @@ def oct_to_decimal(oct_string: str) -> int:
|
||||
-37
|
||||
>>> oct_to_decimal("-")
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
...
|
||||
ValueError: Non-octal value was passed to the function
|
||||
>>> oct_to_decimal("0")
|
||||
0
|
||||
@@ -46,15 +46,15 @@ def oct_to_decimal(oct_string: str) -> int:
|
||||
-2093
|
||||
>>> oct_to_decimal("2-0Fm")
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
...
|
||||
ValueError: Non-octal value was passed to the function
|
||||
>>> oct_to_decimal("")
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
...
|
||||
ValueError: Empty string was passed to the function
|
||||
>>> oct_to_decimal("19")
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
...
|
||||
ValueError: Non-octal value was passed to the function
|
||||
"""
|
||||
oct_string = str(oct_string).strip()
|
||||
|
||||
Reference in New Issue
Block a user