[libcxx-commits] [libcxx] 09e4e9f - [libc++] NFC: Remove unnecessary scope

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Mon May 4 09:33:00 PDT 2020


Author: Louis Dionne
Date: 2020-05-04T12:32:45-04:00
New Revision: 09e4e9ff7b9ada6386f7cfc0aa150de6239541b1

URL: https://github.com/llvm/llvm-project/commit/09e4e9ff7b9ada6386f7cfc0aa150de6239541b1
DIFF: https://github.com/llvm/llvm-project/commit/09e4e9ff7b9ada6386f7cfc0aa150de6239541b1.diff

LOG: [libc++] NFC: Remove unnecessary scope

The double-braces were initially to escape Python string formatting, but
that string isn't sent through Python string formatting.

Added: 
    

Modified: 
    libcxx/utils/libcxx/test/dsl.py

Removed: 
    


################################################################################
diff  --git a/libcxx/utils/libcxx/test/dsl.py b/libcxx/utils/libcxx/test/dsl.py
index 523c5d93f71c..931a0c94ec06 100644
--- a/libcxx/utils/libcxx/test/dsl.py
+++ b/libcxx/utils/libcxx/test/dsl.py
@@ -81,10 +81,10 @@ def hasLocale(config, locale):
     with open(test.getSourcePath(), 'w') as source:
       source.write("""
       #include <locale.h>
-      int main(int, char** argv) {{
+      int main(int, char** argv) {
         if (::setlocale(LC_ALL, argv[1]) != NULL) return 0;
         else                                      return 1;
-      }}
+      }
       """)
     commands = [
       "mkdir -p %T",


        


More information about the libcxx-commits mailing list