[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 1448c0858a135fd62baf7291c5fa059e9eeb30b5
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
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:



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits