un-PEP8'd to look more C friendly
This commit is contained in:
parent
963a6799da
commit
de12887956
3 changed files with 144 additions and 144 deletions
12
aux.py
12
aux.py
|
@ -8,8 +8,8 @@ import over
|
|||
# --------------------------------------------------
|
||||
|
||||
def parse_fps(raw):
|
||||
if '/' in raw:
|
||||
num, den = (int(x) for x in raw.split('/'))
|
||||
if "/" in raw:
|
||||
num, den = (int(x) for x in raw.split("/"))
|
||||
|
||||
return float(num) / float(den)
|
||||
|
||||
|
@ -18,13 +18,13 @@ def parse_fps(raw):
|
|||
# --------------------------------------------------
|
||||
|
||||
def to_Path(raw_path):
|
||||
'''
|
||||
Returns pathlib.Path pointing to raw_path, handling '~/' correctly.
|
||||
"""
|
||||
Returns pathlib.Path pointing to raw_path, handling "~/" correctly.
|
||||
|
||||
To be removed after python:3.5 move.
|
||||
'''
|
||||
"""
|
||||
|
||||
if raw_path.startswith('~'):
|
||||
if raw_path.startswith("~"):
|
||||
raw_path = os.path.expanduser(raw_path)
|
||||
|
||||
return pathlib.Path(raw_path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue