r0oth3x49 / acloud-dl

A cross-platform python based utility to download courses from acloud.guru for personal offline use.
MIT License
350 stars 141 forks source link

Fix/update to python39 fix htmlparser #62

Closed debanjanbasu closed 3 years ago

debanjanbasu commented 3 years ago

updated to python39

r0oth3x49 commented 3 years ago

@debanjanbasu thanks for the PR but you PR is actually not addressing the issue.

import sys
sys.version_info[0]

This code will return only 3 not (3, 9). as html parser was deprecated in 3.9 so a simple solution was to use hasattr on object to make sure things works right on all python version.

i appreciate your contribution thanks for that.