Skip to content

Commit

Permalink
remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
florimondmanca committed Dec 18, 2018
1 parent de39394 commit 16a1c84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ source = bocadillo

[report]
exclude_lines =
pragma: no cover
raise NotImplementedError
if __name__ == .__main__.:
if debug:
Expand Down
8 changes: 1 addition & 7 deletions bocadillo/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

try:
from contextlib import asynccontextmanager
except ImportError:
except ImportError: # pragma: no cover
assert sys.version_info[:2] == (3, 6)
from async_generator import asynccontextmanager

Expand All @@ -27,12 +27,6 @@ async def call_async(func: Callable, *args, sync=False, **kwargs) -> Coroutine:
return await func(*args, **kwargs)


async def call_all_async(funcs: Iterable[Callable], *args, **kwargs):
"""Call functions in an async manner (with the same arguments)."""
for func in funcs:
await call_async(func, *args, **kwargs)


def camel_to_snake(name: str) -> str:
"""Convert a CamelCase name to its snake_case version."""
s1 = _camel_regex.sub(r"\1_\2", name)
Expand Down

0 comments on commit 16a1c84

Please sign in to comment.