| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
@max-moser str.removeprefix was introduced in Python 3.9. Since the package currently supports Python >=3.8, your PR will introduce an incompatibility. |
Sorry, something went wrong.
|
updated the PR to avoid incompatibility. |
Sorry, something went wrong.
* the use of `lstrip()` here was a bit too aggressive * `removeprefix()` is only available with python 3.9+
| Back | FazBrowse Home | New Git URL |
The use of lstrip() here was a bit too aggressive.
For example:
In [1]: "mailto:maximilian.moser@tuwien.ac.at".lstrip("mailto:") Out[1]: 'ximilian.moser@tuwien.ac.at'But:
In [2]: "mailto:maximilian.moser@tuwien.ac.at".removeprefix("mailto:") Out[2]: 'maximilian.moser@tuwien.ac.at'