mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-21 13:54:22 -07:00
[build] Fix various Jython CI and test issues
This commit is contained in:
parent
ca71e56c48
commit
7bce2ad441
4 changed files with 45 additions and 19 deletions
|
@ -131,7 +131,7 @@ if sys.version_info[0] == 2 or sys.version_info < (3, 3):
|
|||
def load(self, rawdata):
|
||||
must_have_value = 0
|
||||
if not isinstance(rawdata, dict):
|
||||
if sys.version_info[:2] != (2, 7):
|
||||
if sys.version_info[:2] != (2, 7) or sys.platform.startswith('java'):
|
||||
# attribute must have value for parsing
|
||||
rawdata, must_have_value = re.subn(
|
||||
r'(?i)(;\s*)(secure|httponly)(\s*(?:;|$))', r'\1\2=\2\3', rawdata)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue