Ticket #3679: 3679-newdesc-event.patch

File 3679-newdesc-event.patch, 436 bytes (added by aagbsn, 8 years ago)

add missing strip()

  • TorCtl.py

    diff --git a/TorCtl.py b/TorCtl.py
    index 42d76b8..faf0d9c 100755
    a b class CircuitEvent(Event): 
    244244    self.circ_id = int(self.circ_id)
    245245
    246246    if self.path:
    247       self.path = [p.replace("~", "=").split("=")[0] for p in self.path.split(",")]
     247      self.path = [p.replace("~", "=").split("=")[0] for p in self.path.strip().split(",")]
    248248    else: self.path = []
    249249
    250250class StreamEvent(Event):