diff options
| author | cadmic <cadmic24@gmail.com> | 2024-01-24 16:03:57 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-24 19:03:57 -0500 |
| commit | 584e61a849293768135255858d6e9f06d338c54b (patch) | |
| tree | a2510b02e25bf46d24c8e83289a20c7276fd9503 /first_diff.py | |
| parent | 16f9ff39beb1d9557dee6a1de19468d60ef23c09 (diff) | |
Add dependencies for tools to requirements.txt (#1621)
* Add dependencies for tools to requirements.txt
* Downgrade mapfile-parser
Diffstat (limited to 'first_diff.py')
| -rwxr-xr-x | first_diff.py | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/first_diff.py b/first_diff.py index 8a92288be..0ffa0f672 100755 --- a/first_diff.py +++ b/first_diff.py @@ -3,17 +3,8 @@ import argparse from pathlib import Path -try: - import rabbitizer -except ImportError: - print("Missing dependency rabbitizer, install it with `python3 -m pip install 'rabbitizer>=1.0.0,<2.0.0'`") - exit(1) - -try: - import mapfile_parser -except ImportError: - print("Missing dependency mapfile_parser, install it with `python3 -m pip install 'mapfile-parser>=1.2.1,<2.0.0'`") - exit(1) +import rabbitizer +import mapfile_parser def decodeInstruction(bytesDiff: bytes, mapFile: mapfile_parser.MapFile) -> str: |
