Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
binwalk
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-gitdep
binwalk
Commits
8e3ed3f9
Commit
8e3ed3f9
authored
Nov 17, 2013
by
heffnercj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Core functionality works in python3; removed hacky python2 stuff from setup.py
parent
542b4701
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
28 deletions
+2
-28
binwalk
src/bin/binwalk
+2
-2
setup.py
src/setup.py
+0
-26
No files found.
src/bin/binwalk
View file @
8e3ed3f9
...
...
@@ -584,8 +584,8 @@ def main():
pass
except
IOError
:
pass
# except Exception,
e:
# print "Unexpected error:", str(e
)
except
Exception
as
e
:
print
(
"Unexpected error:
%
s"
%
str
(
e
)
)
bwalk
.
cleanup
()
...
...
src/setup.py
View file @
8e3ed3f9
...
...
@@ -133,29 +133,3 @@ setup( name = "binwalk",
scripts
=
[
"bin/binwalk"
],
)
# THIS BREAKS WHEN INSTALLING WITH PYTHON3; PROPER PYTHON3 SUPPORT IS IN PROGRESS.
# If python2 exists, replace the shebang to invoke python2.
# This prevents python3 from being used when running binwalk.
# This shouldn't be done on the ./bin/binwalk file, as that would
# cause a conflict between the master branch and the local clone.
#python2_path = which("python2")
#binwalk_path = which("binwalk")
#if python2_path and binwalk_path:
# i = 0
# data = ''
# for line in open(binwalk_path, 'rb').readlines():
# if i == 0:
# line = "#!/usr/bin/env python2\n"
# data += str(line)
# i += 1
# fd = open(binwalk_path, 'wb')
# try:
# fd.write(data)
# except TypeError:
# fd.write(bytes(data, 'UTF-8'))
# fd.close()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment