Skip to content

Commit

Permalink
Merge pull request #8 from Thriftpy/feature/adapt-windows-path
Browse files Browse the repository at this point in the history
Matching of absolute path in Windows
  • Loading branch information
ethe authored Sep 29, 2018
2 parents f066d12 + ea3a618 commit 006cd06
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 @@ -544,7 +544,7 @@ def parse(path, module_name=None, include_dirs=None, include_dir=None,
if url_scheme == 'file':
with open(urlparse(path).netloc + urlparse(path).path) as fh:
data = fh.read()
elif url_scheme == '':
elif len(url_scheme) <= 1:
with open(path) as fh:
data = fh.read()
elif url_scheme in ('http', 'https'):
Expand Down

0 comments on commit 006cd06

Please sign in to comment.