mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-26 12:57:50 +08:00
pep8
This commit is contained in:
+2
-3
@@ -1,12 +1,11 @@
|
|||||||
import os
|
import os
|
||||||
from sys import stdout
|
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
from contextlib import contextmanager
|
|
||||||
from inspect import isclass
|
from inspect import isclass
|
||||||
|
|
||||||
from .tablib import tablib
|
|
||||||
from sqlalchemy import create_engine, exc, inspect, text
|
from sqlalchemy import create_engine, exc, inspect, text
|
||||||
|
|
||||||
|
from .tablib import tablib
|
||||||
|
|
||||||
DATABASE_URL = os.environ.get('DATABASE_URL')
|
DATABASE_URL = os.environ.get('DATABASE_URL')
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -832,4 +832,4 @@ def looks_like_ip(maybe_ip):
|
|||||||
if IP_RE.match(maybe_ip):
|
if IP_RE.match(maybe_ip):
|
||||||
return True
|
return True
|
||||||
except socket.error:
|
except socket.error:
|
||||||
return False
|
return False
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
```python
|
```python
|
||||||
enable_all_module = False # 不开启所有模块
|
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)中设置:
|
如果你指定使用某些模块使用代理可以在[api.py](../oneforall/config/api.py)中设置:
|
||||||
|
|||||||
+1
-1
@@ -332,7 +332,7 @@ class ParseException(Exception):
|
|||||||
|
|
||||||
|
|
||||||
class Token(object):
|
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.type = type
|
||||||
self.name = name
|
self.name = name
|
||||||
self.value = value
|
self.value = value
|
||||||
|
|||||||
Reference in New Issue
Block a user