Skip to content

Commit

Permalink
Use errno module instead of os.errno for Python 3.7 compatibility
Browse files Browse the repository at this point in the history
os.errno is no longer available in Python >= 3.7
  • Loading branch information
juergenhoetzel committed Apr 9, 2020
1 parent b0f94ac commit 5d7fdab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apk-anal.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

from __future__ import print_function
import r2pipe
import sys,os,subprocess
import sys,os,subprocess,errno
import shutil,itertools,argparse,zipfile
import magic
from xml.dom.minidom import parseString
Expand Down Expand Up @@ -286,7 +286,7 @@ def print_results(analysis_results,messages,r2p):
if "anti_disassembly" in output:
print("[*] Notice: APKiD found anti disassembly measures (anti-disassembly).")
except OSError as e:
if e.errno == os.errno.ENOENT:
if e.errno == errno.ENOENT:
print("[*] APKiD not found. Skipping.")
else:
raise
Expand Down

0 comments on commit 5d7fdab

Please sign in to comment.