[Pkg-privacy-commits] [onioncircuits] 13/62: Capitalize stream/circuit statuses

Intrigeri intrigeri at moszumanska.debian.org
Thu Feb 18 20:20:02 UTC 2016


This is an automated email from the git hooks/post-receive script.

intrigeri pushed a commit to branch master
in repository onioncircuits.

commit 474c1fbcedaabd74132d5fd42dc74df5f53691b9
Author: Tails developers <tails at boum.org>
Date:   Sat Feb 21 17:01:13 2015 +0100

    Capitalize stream/circuit statuses
---
 tormonitor | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/tormonitor b/tormonitor
index a100f5b..8b8a0c2 100755
--- a/tormonitor
+++ b/tormonitor
@@ -238,17 +238,17 @@ class TorMonitorWindow(Gtk.ApplicationWindow):
                         [self.TYPE_CIRC,
                         circuit.id,
                         self.circuit_label(circuit),
-                        str(circuit.status).lower()])
+                        str(circuit.status).capitalize()])
         self._circ_to_iter[circuit.id] = circ_iter
         return circ_iter
 
     def update_circuit(self, circuit):
         logging.debug("updating circuit %s" % circuit)
         if circuit.reason:
-            status = _("%s: %s") % (str(circuit.status).lower(),
+            status = _("%s: %s") % (str(circuit.status).capitalize(),
                                     str(circuit.reason).lower())
         else:
-            status = str(circuit.status).lower()
+            status = str(circuit.status).capitalize()
         self._treestore.set(
             self._circ_to_iter[circuit.id],
             2, self.circuit_label(circuit),
@@ -290,7 +290,7 @@ class TorMonitorWindow(Gtk.ApplicationWindow):
                     [self.TYPE_STREAM,
                     stream.id,
                     self.stream_label(stream),
-                    str(stream.status).lower()])
+                    str(stream.status).capitalize()])
         self._stream_to_iter[stream.id] = stream_iter
         self._treeview.expand_to_path(self._treestore.get_path(stream_iter))
         return stream_iter
@@ -307,7 +307,7 @@ class TorMonitorWindow(Gtk.ApplicationWindow):
             # The stream didn't change parent. Update it.
             self._treestore.set(stream_iter, 2, self.stream_label(stream))
             if stream.status:
-                self._treestore.set(stream_iter, 3, str(stream.status).lower())
+                self._treestore.set(stream_iter, 3, str(stream.status).capitalize())
 
     def remove_stream(self, stream):
         self._treestore.remove(self._stream_to_iter[stream.id])

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/onioncircuits.git



More information about the Pkg-privacy-commits mailing list