[tor-commits] [bridgedb/develop] Change the embedded list of supported languages into a set.

isis at torproject.org isis at torproject.org
Wed May 14 03:42:28 UTC 2014


commit 1448c0858a135fd62baf7291c5fa059e9eeb30b5
Author: Isis Lovecruft <isis at torproject.org>
Date:   Thu Apr 24 19:03:51 2014 +0000

    Change the embedded list of supported languages into a set.
---
 setup.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/setup.py b/setup.py
index 030a0e4..fbb6602 100644
--- a/setup.py
+++ b/setup.py
@@ -163,8 +163,8 @@ def get_supported_langs():
     with open(repo_langs, 'r') as langsfile:
         for line in langsfile.readlines():
             if line.startswith('supported'):
-                line = "supported = %s\n" % supported
-                #print("REWROTE supported langs: %s" % line)
+                # Change the 'supported' list() into a set():
+                line = "supported = set(%s)\n" % supported
             new_langs_lines.append(line)
     with open(repo_langs, 'w') as newlangsfile:
         for line in new_langs_lines:





More information about the tor-commits mailing list