We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2493a91 commit cefeef3Copy full SHA for cefeef3
utils/make-sqlite.py
@@ -16,11 +16,7 @@
16
# This is important for deterministic builds.
17
# https://trac.torproject.org/projects/tor/ticket/11630#comment:20
18
# It's also helpful to ensure consistency for the lowercase check below.
19
-# Systems differ on UTF8 or UTF-8. Use try to test both to avoid failures.
20
-try :
21
- locale.setlocale(locale.LC_ALL, 'en_US.UTF8')
22
-except :
23
- locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')
+locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')
24
25
conn = sqlite3.connect(os.path.join(os.path.dirname(__file__), '../src/defaults/rulesets.sqlite'))
26
c = conn.cursor()
0 commit comments