Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Regex on Line 127 in _solidity.py #873

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ethereum/tools/_solidity.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ def solc_parse_output(compiler_output):

def compiler_version():
""" Return the version of the installed solc. """
version_info = subprocess.check_output(['solc', '--version'])
match = re.search(b'^Version: ([0-9a-z.-]+)/', version_info, re.MULTILINE)
version_info = subprocess.check_output(['solc', '--version'], stderr=subprocess.STDOUT)
match = re.search(b'^Version: ([0-9a-z.-]+)', version_info, re.MULTILINE)

if match:
return match.group(1)
Expand Down