Matthias Urlichs
14ef17163f
Don't compare with None
2019-02-04 20:44:57 +01:00
Matthias Urlichs
9a1bd8af87
These are numbers so unicode() is not necessary
2019-02-04 20:35:00 +01:00
Matthias Urlichs
a292a12c4a
The lastline buffer has bytes
...
This reduces required work because we only need to convert back when
resending
2019-02-04 20:35:00 +01:00
Matthias Urlichs
200a3ef4eb
replaced a bunch of map() with generator expressions
2019-02-04 20:35:00 +01:00
Matthias Urlichs
88582beb55
grammar ;-)
2019-02-04 20:29:22 +01:00
Matthias Urlichs
6d7c8bbda6
More backslashes
2019-02-04 20:13:06 +01:00
Matthias Urlichs
9a7f92174a
forgot to replace a unicode=str instance
2019-02-04 20:13:06 +01:00
Gina Häußge
61431c0df3
Merge remote-tracking branch 'origin/master'
2019-02-04 18:48:10 +01:00
Matthias Urlichs
a301fc6da9
Merge remote-tracking branch 'origin/devel' into py23
2019-02-04 18:44:23 +01:00
Gina Häußge
cc0b63cbb9
📝 Fix a formatting issue
...
No events are about to be removed in 1.4.0, only the payload fields
marked as deprecated. And for some reason ReST doesn't appear to allow
including that piece of information within the `deprecated` directive,
so now we have a slightly different way of expressing it...
2019-02-04 18:40:57 +01:00
Matthias Urlichs
e08dc0b5aa
missed importing "long" from past.builtins
2019-02-04 17:04:33 +01:00
Matthias Urlichs
a368a7f1c9
comm: we already have a logger. Use it.
2019-02-04 17:04:01 +01:00
Gina Häußge
020403dc54
💬 Correct typo in german translation
...
Closes #3029
2019-02-04 14:43:12 +01:00
Matthias Urlichs
6a601d4f8e
clean_ansi: accept strings
2019-02-04 14:33:57 +01:00
Gina Häußge
7a3b370469
🐛 Fix earlier merge error
...
New permission system does handle disabled ACL slightly differently.
2019-02-04 14:30:02 +01:00
Matthias Urlichs
e676d53e9f
Fix the remaining docstr tests
...
Sets are annoying to test:
(a) their repr() is different
(b) they might get re-ordered.
2019-02-04 14:15:09 +01:00
Matthias Urlichs
40b231f692
fix TagStripper for py2
2019-02-04 14:14:55 +01:00
Matthias Urlichs
86664fdb39
super() doesn't work in Py2. Yech.
2019-02-04 13:58:56 +01:00
Matthias Urlichs
4ebb5cf42d
more native_str
2019-02-04 13:38:31 +01:00
Matthias Urlichs
e8bee435af
forgotten import
2019-02-04 13:33:46 +01:00
Matthias Urlichs
082f977f7a
Disable unicode strings in github_release
...
I am too lazy to fix all the doctests
2019-02-04 13:32:34 +01:00
Matthias Urlichs
237a2c0add
Make the HTML tag stripper 2.7 compatible
...
convert_charrefs defaults to True on Py3.5 ff.
2019-02-04 13:20:47 +01:00
Matthias Urlichs
2e47f49f7a
Make to_native_str() decode bytes
...
used for doctests
2019-02-04 13:14:32 +01:00
Matthias Urlichs
05919363e1
De-ANSIfication needs to run on bytes.
2019-02-04 13:14:01 +01:00
Matthias Urlichs
7c8547555c
double escapes vs. raw strings. Ugh.
2019-02-04 13:13:30 +01:00
Matthias Urlichs
ce0c77f0bf
Travis: run on xenial distro
2019-02-04 13:13:09 +01:00
Matthias Urlichs
aec041b014
Fix unicode woes in doctests
2019-02-04 13:00:54 +01:00
Matthias Urlichs
58b32803df
Tell Travis to also test py3.6 and py3.7
2019-02-04 12:49:11 +01:00
Matthias Urlichs
6d447f8408
unicode woes for funcion __name__/__qualname__
2019-02-04 12:47:44 +01:00
Matthias Urlichs
54d359f730
Don't spew a stack trace if vcgencmd doesn't work / exist
2019-02-04 11:34:05 +01:00
Matthias Urlichs
4d9f0fca41
Unicode woes for serial seending
2019-02-04 11:24:25 +01:00
Matthias Urlichs
41146c2b7c
another hash
2019-02-04 11:23:08 +01:00
Matthias Urlichs
99d7157cb7
Missing translation
2019-02-03 19:10:27 +01:00
Matthias Urlichs
c8b5662ff2
a bunch of bytes
2019-02-03 19:02:10 +01:00
Matthias Urlichs
b781681e0f
There's no 'file' in Py3
2019-02-03 19:01:47 +01:00
Matthias Urlichs
5edeecdc8c
Py3 codecs.open doesn't like mode='t'
2019-02-03 19:01:07 +01:00
Matthias Urlichs
f82ec61463
restore setup.py
...
Incompatibility with Jinja 2.10
2019-02-03 19:00:29 +01:00
Matthias Urlichs
372a8d2ea8
Feedparser: avoid warning due to their workaround
...
see Feedparser issues 328 and 310
2019-02-03 17:39:12 +01:00
Matthias Urlichs
9c5d1dec59
don't apply str.lower() to unicode
2019-02-03 17:39:01 +01:00
Matthias Urlichs
feff5e0978
type() vs. unicode, again
2019-02-03 17:25:39 +01:00
Matthias Urlichs
019bf5acd4
use past.builtins.unicode
2019-02-03 17:19:46 +01:00
Matthias Urlichs
717aafee08
TODO catch this sphinx error in a reasonable way
2019-02-03 16:39:31 +01:00
Matthias Urlichs
67c5a5e168
went through "except Exception:" with a fine comb
2019-02-03 16:39:01 +01:00
Matthias Urlichs
6310afa261
owchie to_native
2019-02-03 16:36:20 +01:00
Matthias Urlichs
cd6ae6e47b
setup 2 unicode_literals
2019-02-03 16:35:48 +01:00
Matthias Urlichs
b01e1c269d
owchie to_native
2019-02-03 16:35:12 +01:00
Matthias Urlichs
49fb0f87d5
Clean up Py2-vs.Py3 imports
2019-02-03 16:32:00 +01:00
Matthias Urlichs
8956e7a173
actually purge logger entries
2019-02-03 15:55:49 +01:00
Matthias Urlichs
9fa20f0e52
rename to_str to to_bytes
2019-02-03 14:54:28 +01:00
Matthias Urlichs
6bf8384c35
Kill of u"" (visual clutter)
2019-02-03 14:25:41 +01:00