lpschedule-generator

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

commit c04d69b9b76112b4291fa9f82e2566839056c9f1
parent c7ac1a8ea3ad67528749482df4a76d19da770de6
Author: rsiddharth <rsd@gnu.org>
Date:   Sat, 13 Feb 2016 19:06:31 -0500

Readability change to LPSpeakersRenderer.mk_uid

Arg `text` -> `speaker_block`.

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

diff --git a/lps_gen.py b/lps_gen.py @@ -232,11 +232,11 @@ class LPSpeakersRenderer(Renderer): self.speakers_ids = OrderedDict() - def mk_uid(self, text): + def mk_uid(self, speaker_block): """Returns a unique id. """ # 'John HÖcker, Onion Project' -> 'John HÖcker' - speaker = unicode(text.split(', ')[0]) + speaker = unicode(speaker_block.split(', ')[0]) # 'John HÖcker' -> 'John Hacker' ascii_speaker = unidecode(speaker)