chore: reformatted all files
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import logging
|
||||
|
||||
from typing import BinaryIO, IO, Union
|
||||
|
||||
from .unpacker import Unpacker
|
||||
|
||||
@@ -2,7 +2,7 @@ import collections
|
||||
import enum
|
||||
import logging
|
||||
import struct
|
||||
from typing import Dict, List, Optional, Union, Tuple
|
||||
from typing import Dict, List, Optional, Tuple, Union
|
||||
|
||||
from pjvm.unpacker import Unpacker
|
||||
from .classloader import ClassLoader
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
from logging import getLogger
|
||||
from typing import Callable, Dict, List, Optional, Tuple, Union, TYPE_CHECKING
|
||||
from typing import Callable, Dict, List, Optional, TYPE_CHECKING, Tuple, Union
|
||||
|
||||
from . import utils
|
||||
from .exceptions import PJVMTypeError, PJVMNotImplemented
|
||||
from .exceptions import PJVMNotImplemented, PJVMTypeError
|
||||
from .old_jtypes import JInteger, JObj, JString
|
||||
from .stackframe import Frame
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import struct
|
||||
from typing import List
|
||||
|
||||
from .clazz import Class, Method, Code
|
||||
from .clazz import Class, Code, Method
|
||||
from .exceptions import PJVMException
|
||||
from .old_jtypes import JObj
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from io import BytesIO
|
||||
from struct import unpack, calcsize
|
||||
from typing import Dict, BinaryIO
|
||||
from struct import calcsize, unpack
|
||||
from typing import BinaryIO, Dict
|
||||
|
||||
|
||||
class Unpacker:
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
from typing import List
|
||||
import re
|
||||
|
||||
|
||||
re_types = re.compile('([BCDFIJSZV]|L(?:[a-zA-Z0-9_]+/)+[a-zA-Z0-9_]+;)')
|
||||
|
||||
re_method_sig = re.compile(fr"\(({re_types.pattern}*)\){re_types.pattern}")
|
||||
|
||||
Reference in New Issue
Block a user