lpschedule-generator

libreplanet schedule generator - ricketyspace.net/lpschedule-generator
git clone git://git.ricketyspace.net/lpschedule-generator.git
Log | Files | Refs

commit 34f3d8cc3b03f7f2b98ced31801a6de24446b216
parent dcaa6a31867090febc1cc3c12b25052dcbfd9335
Author: rsiddharth <rsd@gnu.org>
Date:   Sun,  9 Sep 2018 22:25:00 +0000

lps_gen.py: Change string handling.

unicode(STRING) -> str(STRING)

* lps_gen.py (LPSRenderer.get_uid)
(LPSpeakersRenderer.mk_uid): Update methods.

Diffstat:
lps_gen.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lps_gen.py b/lps_gen.py @@ -313,7 +313,7 @@ class LPSRenderer(Renderer): # There is no speakers_ids OrderedDict available. return False - speaker = unicode(speaker) + speaker = str(speaker) if speaker in self.speakers_ids.keys(): return self.speakers_ids[speaker] else: @@ -469,7 +469,7 @@ class LPSpeakersRenderer(Renderer): """Returns a unique id. """ # 'John HÖcker, Onion Project' -> 'John HÖcker' - speaker = unicode(speaker_block.split(', ')[0]) + speaker = str(speaker_block.split(', ')[0]) # 'John HÖcker' -> 'John Hacker' ascii_speaker = unidecode(speaker)