This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ast | |
exprs = [ | |
""" | |
import flask | |
import django | |
a = 'hello world!' | |
b = __import__ | |
b("io") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Keep as-is. | |
events { | |
worker_connections 1024; | |
} | |
http { | |
# Keep as-is. | |
include mime.types; | |
default_type application/octet-stream; | |
sendfile on; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import Dict, List, Optional, Union | |
class HTMLTag: | |
def __init__(self, name: str, data: Union[List["HTMLTag"], any], params: Optional[Dict] = None): | |
self.name = name | |
self.data = data | |
self.params = params | |
def __str_params(self): |