Remove assertion for `pwndbg.gdblib.file.get_file` (#2344)

pull/2347/head
Alan Li 1 year ago committed by GitHub
parent 8f78932c5e
commit 42869c0be9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -57,9 +57,11 @@ def get_file(path: str, try_local_path: bool = False) -> str:
Returns: Returns:
The local path to the file The local path to the file
""" """
assert path.startswith(("/", "./", "../")) or path.startswith( # Seems like we don't need this check and this check might casue issues, see #2338
"target:" # Just keep the code commented for now, so we can revert if needed.
), "get_file called with incorrect path" # assert path.startswith(("/", "./", "../")) or path.startswith(
# "target:"
# ), "get_file called with incorrect path"
has_target_prefix = path.startswith("target:") has_target_prefix = path.startswith("target:")
if has_target_prefix: if has_target_prefix:

Loading…
Cancel
Save