Skip to content
This repository has been archived by the owner on Dec 9, 2020. It is now read-only.

Commit

Permalink
Fix whitespace
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Marr <[email protected]>
  • Loading branch information
smarr committed Dec 8, 2020
1 parent 37a42de commit 42c6002
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rlib/osext.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os


def path_split(path):
"""This is a replacement for the combined use of os.path.split and
os.path.splitext to decompose a relative path into its components.
Expand All @@ -17,6 +18,7 @@ def path_split(path):
file_name = file_and_ext[0]
return path, file_name, ext


def _read_raw(answer):
buf = os.read(1, 32)
if len(buf) == 0:
Expand All @@ -26,6 +28,7 @@ def _read_raw(answer):
else:
return answer + buf, True


def raw_input(msg = ""):
os.write(1, msg)
answer, cont = _read_raw("")
Expand Down

0 comments on commit 42c6002

Please sign in to comment.