Formatting.
This commit is contained in:
parent
44dd77cec5
commit
743593affe
src/snek
@ -17,8 +17,8 @@ from aiohttp_session import (
|
|||||||
setup as session_setup,
|
setup as session_setup,
|
||||||
)
|
)
|
||||||
from aiohttp_session.cookie_storage import EncryptedCookieStorage
|
from aiohttp_session.cookie_storage import EncryptedCookieStorage
|
||||||
from app.app import Application as BaseApplication
|
|
||||||
|
|
||||||
|
from app.app import Application as BaseApplication
|
||||||
from snek.docs.app import Application as DocsApplication
|
from snek.docs.app import Application as DocsApplication
|
||||||
from snek.mapper import get_mappers
|
from snek.mapper import get_mappers
|
||||||
from snek.service import get_services
|
from snek.service import get_services
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import pathlib
|
import pathlib
|
||||||
|
|
||||||
from aiohttp import web
|
from aiohttp import web
|
||||||
from app.app import Application as BaseApplication
|
|
||||||
|
|
||||||
|
from app.app import Application as BaseApplication
|
||||||
from snek.system.markdown import MarkdownExtension
|
from snek.system.markdown import MarkdownExtension
|
||||||
|
|
||||||
|
|
||||||
|
@ -32,9 +32,10 @@ from urllib.parse import urljoin
|
|||||||
|
|
||||||
import aiohttp
|
import aiohttp
|
||||||
import imgkit
|
import imgkit
|
||||||
from app.cache import time_cache_async
|
|
||||||
from bs4 import BeautifulSoup
|
from bs4 import BeautifulSoup
|
||||||
|
|
||||||
|
from app.cache import time_cache_async
|
||||||
|
|
||||||
|
|
||||||
async def crc32(data):
|
async def crc32(data):
|
||||||
try:
|
try:
|
||||||
|
@ -2,12 +2,13 @@
|
|||||||
|
|
||||||
from types import SimpleNamespace
|
from types import SimpleNamespace
|
||||||
|
|
||||||
from app.cache import time_cache_async
|
|
||||||
from mistune import HTMLRenderer, Markdown
|
from mistune import HTMLRenderer, Markdown
|
||||||
from pygments import highlight
|
from pygments import highlight
|
||||||
from pygments.formatters import html
|
from pygments.formatters import html
|
||||||
from pygments.lexers import get_lexer_by_name
|
from pygments.lexers import get_lexer_by_name
|
||||||
|
|
||||||
|
from app.cache import time_cache_async
|
||||||
|
|
||||||
|
|
||||||
class MarkdownRenderer(HTMLRenderer):
|
class MarkdownRenderer(HTMLRenderer):
|
||||||
|
|
||||||
|
@ -12,9 +12,10 @@ import uuid
|
|||||||
import aiofiles
|
import aiofiles
|
||||||
import aiohttp
|
import aiohttp
|
||||||
import aiohttp.web
|
import aiohttp.web
|
||||||
from app.cache import time_cache_async
|
|
||||||
from lxml import etree
|
from lxml import etree
|
||||||
|
|
||||||
|
from app.cache import time_cache_async
|
||||||
|
|
||||||
|
|
||||||
@aiohttp.web.middleware
|
@aiohttp.web.middleware
|
||||||
async def debug_middleware(request, handler):
|
async def debug_middleware(request, handler):
|
||||||
|
Loading…
Reference in New Issue
Block a user