mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-27 15:31:31 +00:00
More Pythonics util.print_error
This commit is contained in:
parent
d66673eca2
commit
2598e89d00
2 changed files with 4 additions and 5 deletions
|
@ -3,10 +3,9 @@ import platform
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
def print_error(*args):
|
def print_error(*args):
|
||||||
"""Print out the arguments to standard error."""
|
# Stringify args
|
||||||
for item in args:
|
args = [str(item) for item in args]
|
||||||
sys.stderr.write(str(item))
|
sys.stderr.write(" ".join(args) + "\n")
|
||||||
sys.stderr.write("\n")
|
|
||||||
sys.stderr.flush()
|
sys.stderr.flush()
|
||||||
|
|
||||||
def appdata_dir():
|
def appdata_dir():
|
||||||
|
|
Loading…
Add table
Reference in a new issue