Skip to content

Commit

Permalink
Revert "client: make lief an optional dependency"
Browse files Browse the repository at this point in the history
This reverts commit af930fd.
  • Loading branch information
doronz88 committed Mar 29, 2022
1 parent ac3938f commit a3ca7e3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
1 change: 1 addition & 0 deletions src/rpcclient/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ dataclasses; python_version<"3.7"
pygments
objc_types_decoder
pycrashreport>=0.0.8
lief
6 changes: 1 addition & 5 deletions src/rpcclient/rpcclient/darwin/darwin_lief.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import logging
import plistlib
import struct
from typing import Mapping

try:
import lief
except ImportError:
logging.warning('failed to import lief. install seperately to use LIEF features')
import lief

from rpcclient.common import path_to_str
from rpcclient.darwin.consts import kSecCodeMagicEntitlement
Expand Down
6 changes: 1 addition & 5 deletions src/rpcclient/rpcclient/lief.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import logging
from collections import namedtuple
from typing import Mapping

try:
import lief
except ImportError:
logging.warning('failed to import lief. install seperately to use LIEF features')
import lief

from rpcclient.common import path_to_str

Expand Down

0 comments on commit a3ca7e3

Please sign in to comment.