Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

Matching of absolute path in Windows #342

Open
wants to merge 1 commit 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
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