Code formatting.
This commit is contained in:
parent
522af89af5
commit
c246b41d64
1 changed files with 2 additions and 0 deletions
|
@ -116,6 +116,8 @@ def backtick (cmd, encoding='utf-8'):
|
||||||
"""Return decoded output from command."""
|
"""Return decoded output from command."""
|
||||||
data = subprocess.Popen(cmd, stdout=subprocess.PIPE).communicate()[0]
|
data = subprocess.Popen(cmd, stdout=subprocess.PIPE).communicate()[0]
|
||||||
return data.decode(encoding)
|
return data.decode(encoding)
|
||||||
|
|
||||||
|
|
||||||
def unicode_safe(text, encoding=UrlEncoding, errors='ignore'):
|
def unicode_safe(text, encoding=UrlEncoding, errors='ignore'):
|
||||||
"""Decode text to Unicode if not already done."""
|
"""Decode text to Unicode if not already done."""
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue