Skip to content
Snippets Groups Projects
Commit 9194e5b5 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

clean up

parent e611b9af
No related branches found
No related tags found
No related merge requests found
......@@ -8,8 +8,7 @@ omit=
.eggs/*
setup.py
satella/__init__.py
satella/posix/signals.py
satella/distutils.py
satella/os/signals.py
[report]
include=
......
......@@ -7,7 +7,6 @@ from .decorators.decorators import wraps
from .typing import ExceptionClassType, T, NoArgCallable, ExceptionList
def silence_excs(*exc_types: ExceptionClassType, returns=None,
returns_factory: tp.Optional[NoArgCallable[tp.Any]] = None):
"""
......
......@@ -3,7 +3,7 @@ from abc import ABCMeta, abstractmethod
__all__ = ['Iteratable', 'T', 'U', 'V', 'K', 'Number', 'ExceptionClassType',
'NoArgCallable', 'Appendable', 'Predicate', 'KVTuple',
'Comparable', 'ExceptionList']
'Comparable', 'ExceptionList', 'NoneType']
NoneType = None.__class__
......
import json
import typing as tp
from abc import ABCMeta, abstractmethod
import typing
import json
from satella.coding.typing import NoneType
try:
import ujson
except ImportError:
pass
__all__ = ['JSONEncoder', 'JSONAble', 'json_encode', 'read_json_from_file',
'write_json_to_file', 'write_json_to_file_if_different']
......
......@@ -11,7 +11,7 @@ from .time import parse_time_string
@call_in_separate_thread(daemon=True)
@silence_excs((IOError, OSError))
@silence_excs(IOError, OSError)
def read_nowait(process: subprocess.Popen, output_list: tp.List[str]):
"""
This spawns a thread to read given process' stdout and append it to a list, in
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment