Originally Posted by
dsayers
Can this be added to GitHub please? I keep doing updates to latest image then forget to add it till I get a crash lol
I would create a pr request but I'm not sure if it works on py2 or if a py version check needs adding.
In Python 2 the "b" is ignored.
Code:
Python 2.7.16 (v2.7.16:413a49145e, Mar 4 2019, 01:37:19) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> b'%' not in "http"
True
>>>
>>> '%' not in "http"
True
>>>
>>> type("%")
<type 'str'>
>>>
>>> type(b"%")
<type 'str'>
>>>
>>>
Code:
Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 22:45:29) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> type("%")
<class 'str'>
>>>
>>> type(b"%")
<class 'bytes'>
>>>
Please make a pull request.