Commit graph

14 commits

Author SHA1 Message Date
Christian Clauss
49e07bcb2f
xrange() was removed from Python on 1/1/2020
Also simplify by defining basestring and unicode in Python 3

Python porting best practice [___use feature detection instead of version detection___](https://docs.python.org/3/howto/pyporting.html#use-feature-detection-instead-of-version-detection).

Bare exceptions: https://realpython.com/the-most-diabolical-python-antipattern

__basestring__ and __unicode__ was removed in Python 3 because all str are Unicode utf-8.
2020-04-13 10:44:05 +02:00
CorpNewt
fe2aa87897 Update run.py, plist.py from pymodules 2020-03-16 11:29:48 -05:00
CorpNewt
1d357c00cb Update plist.py from pymodules 2019-07-02 09:51:23 -05:00
CorpNewt
e31b473e1e
Fix py3, remove subclass 2018-11-14 23:48:37 -06:00
CorpNewt
3e228593ed
Fix unicode xml parsing via subclass 2018-11-13 11:23:37 -06:00
CorpNewt
2e12e6f530
Bypass cStringIO for writes too 2018-11-13 09:58:23 -06:00
CorpNewt
7072baa61e
Force StringIO in lieu of cStringIO 2018-11-13 09:42:16 -06:00
CorpNewt
c17eda3b85
Wrap data in plistlib.Data 2018-10-12 13:28:08 -05:00
CorpNewt
4abdf13dd7
Fix incorrect data header 2018-10-12 13:15:53 -05:00
CorpNewt
a9087e9a9f
More plist fixes 2018-10-12 12:48:26 -05:00
CorpNewt
b2896f5304
Add files via upload 2018-10-06 22:07:05 -05:00
CorpNewt
092ace29ec
String conversion for BytesIO fix
Only convert str vars to data when py3 in loads() as py2 plistlib can handle str and unicode without encoding
2018-09-26 19:31:03 -05:00
CorpNewt
3b921fa211 Fixed issue with starting char, fixed plist reading from string in py2 2018-09-26 14:47:57 -05:00
CorpNewt
a76e237a46
Add files via upload 2018-09-25 23:16:18 -05:00