Skip to content

Commit

Permalink
Fix ROPgadget update fails with python3 (#188)
Browse files Browse the repository at this point in the history
Fixes #186
  • Loading branch information
nurmukhametov committed Oct 27, 2022
1 parent 81af91a commit 994238f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ropgadget/updateAlert.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def checkUpdate():
except:
print("Can't connect to raw.githubusercontent.com")
return
d = conn.getresponse().read()
d = conn.getresponse().read().decode()
majorVersion = re.search("MAJOR_VERSION.+=.+(?P<value>[\d])", d).group("value")
minorVersion = re.search("MINOR_VERSION.+=.+(?P<value>[\d])", d).group("value")
webVersion = int("%s%s" % (majorVersion, minorVersion))
Expand Down

0 comments on commit 994238f

Please sign in to comment.