Skip to content

Commit

Permalink
Merge pull request #271 from ErKatz/patch-2
Browse files Browse the repository at this point in the history
Update parser.py
  • Loading branch information
hit9 authored Dec 7, 2016
2 parents 4be026a + b70515f commit b30e41d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thriftpy/parser/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ def parse(path, module_name=None, include_dirs=None, include_dir=None,

url_scheme = urlparse(path).scheme
if url_scheme == 'file':
with open(urlparse(path).netloc) as fh:
with open(urlparse(path).netloc + urlparse(path).path) as fh:
data = fh.read()
elif url_scheme == '':
with open(path) as fh:
Expand Down

0 comments on commit b30e41d

Please sign in to comment.