mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-26 04:47:48 +08:00
pep8
This commit is contained in:
+2
-3
@@ -1,12 +1,11 @@
|
||||
import os
|
||||
from sys import stdout
|
||||
from collections import OrderedDict
|
||||
from contextlib import contextmanager
|
||||
from inspect import isclass
|
||||
|
||||
from .tablib import tablib
|
||||
from sqlalchemy import create_engine, exc, inspect, text
|
||||
|
||||
from .tablib import tablib
|
||||
|
||||
DATABASE_URL = os.environ.get('DATABASE_URL')
|
||||
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
```python
|
||||
enable_all_module = False # 不开启所有模块
|
||||
enable_partial_module = [('modules.search', 'ask'),('modules.search', 'baidu')] # 只使用ask和baidu搜索引擎收集子域
|
||||
enable_partial_module = [('modules.search', 'ask'), ('modules.search', 'baidu')] # 只使用ask和baidu搜索引擎收集子域
|
||||
```
|
||||
|
||||
如果你指定使用某些模块使用代理可以在[api.py](../oneforall/config/api.py)中设置:
|
||||
|
||||
+1
-1
@@ -332,7 +332,7 @@ class ParseException(Exception):
|
||||
|
||||
|
||||
class Token(object):
|
||||
def __init__(self, type: TOKEN_TYPE, name: str = '', value: bool = False):
|
||||
def __init__(self, type, name='', value=False):
|
||||
self.type = type
|
||||
self.name = name
|
||||
self.value = value
|
||||
|
||||
Reference in New Issue
Block a user