cBioPortal / oncotree

Creative Commons Attribution 4.0 International
35 stars 26 forks source link

oncotree_to_oncotree.py should support python3 #232

Closed sheridancbio closed 3 years ago

sheridancbio commented 3 years ago

This redirects #208 into a feature branch

This was run with python 3.7.6

urllib.urlopen is no longer a thing in python3. It is urllib.request.urlopen DeprecationWarning: 'U' mode is deprecated (It is the default in python3) with open(file, "rU"): oncotree_code = lists_of_all_ancestors[0][min_length - 1] TypeError: 'dict_values' object is not subscriptable TypeError: unsupported operand type(s) for >>: 'builtin_function_or_method' and '_io.TextIOWrapper'. Did you mean "print(, file=)"