Skip to content

Commit

Permalink
fixed issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ivicanikolicsg committed Mar 19, 2018
1 parent b83835f commit ab387e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tool/blockchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def kill_active_blockchain():
pid = int(line.split(None, 1)[0])
p2 = subprocess.Popen(['ps','-p',str(pid) ], stdout=subprocess.PIPE, stderr=devnull)
out2,err2 = p2.communicate()
if out2.find('datadir') >= 0:
if bytes.decode(out2).find('datadir') >= 0:
os.kill(pid, signal.SIGKILL)
time.sleep(1)

Expand Down
2 changes: 1 addition & 1 deletion tool/contracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def compile_contract(filename):
solo = ''
while p.poll() is None:
l = p.stdout.readline()
solo += l
solo += bytes.decode(l)
if 'Error' in solo:
print(solo)
print('\033[91m[-] Cannot compile the contract \033[0m')
Expand Down

0 comments on commit ab387e1

Please sign in to comment.