Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-hunhoff committed Feb 1, 2024
1 parent eaa119f commit d42060c
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 13 deletions.
1 change: 0 additions & 1 deletion data/python/jepwelcome.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

import sys


message = r"""
_____ _ _ _ _ _
/ ____| | (_) | | | | | |
Expand Down
4 changes: 2 additions & 2 deletions data/python/jepwrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
# Unless required by applicable law or agreed to in writing, software distributed under the License
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and limitations under the License.
import sys
import abc
import io
import os
import abc
import sys

import java.lang

Expand Down
1 change: 1 addition & 0 deletions data/python/tests/hello.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
# See the License for the specific language governing permissions and limitations under the License.

import pathlib

import jep

path = pathlib.Path("hello.txt")
Expand Down
4 changes: 2 additions & 2 deletions data/python/tests/runall.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
Note: you must run this harness from the Ghidra script manager or headless mode
"""

import unittest
import pathlib
import sys
import pathlib
import unittest


def main():
Expand Down
2 changes: 1 addition & 1 deletion data/python/tests/test_jepbridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ def assertIsNotJavaObject(self, o):

def test_type_instance(self):
# see Jep: https://github.com/ninia/jep/blob/15e36a7ba54eb7d8f7ffd85f16675fa4fd54eb1d/src/test/python/test_import.py#L54-L65
from java.lang import Object
from java.io import Serializable
from java.lang import Object
from java.util import Date
from ghidra.program.database import ProgramDB

Expand Down
3 changes: 1 addition & 2 deletions ghidra_scripts/ghidrathon_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and limitations under the License.

from ghidra.program.model.block import SimpleBlockIterator
from ghidra.program.model.block import BasicBlockModel
from ghidra.program.model.block import BasicBlockModel, SimpleBlockIterator

for func in currentProgram().getListing().getFunctions(True):
block_count = 0
Expand Down
9 changes: 4 additions & 5 deletions util/ghidrathon_configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and limitations under the License.

import importlib.util
import argparse
import pathlib
import logging
import sys

import logging
import pathlib
import argparse
import importlib.util

SUPPORTED_JEP_VERSION = "4.2.0"

Expand Down

0 comments on commit d42060c

Please sign in to comment.