Skip to content

Commit

Permalink
Make it runs on python3.7 (who want to use it?...)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marven11 committed Dec 2, 2023
1 parent ca2bf20 commit c0f2144
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion fenjing/cracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

from collections import namedtuple
from string import ascii_lowercase
from typing import Union, Callable, Dict, Tuple, Literal


from .payload_gen import TargetAndSubTargets, find_bad_exprs
from .requester import Requester
Expand All @@ -34,6 +34,13 @@
from .context_vars import ContextVariableUtil
from .options import Options


import sys

if sys.version_info >= (3, 8):
from typing import Union, Callable, Dict, Tuple, Literal
else:
from typing_extensions import Union, Callable, Dict, Tuple, Literal
logger = logging.getLogger("cracker")
Result = namedtuple("Result", "full_payload_gen input_field")

Expand Down

0 comments on commit c0f2144

Please sign in to comment.