fix folly::NotificationQueue for move-only value types
[folly.git] / folly / build / generate_escape_tables.py
index 0d18978e470b6a808e80aa1f609716d57cdfed81..8ca67bd20e102ae7959d44f2bf76f084865972da 100755 (executable)
@@ -79,10 +79,10 @@ def generate(f):
     # 4 = always percent-encode
     f.write("extern const unsigned char uriEscapeTable[] = {")
     passthrough = (
-        range(ord('0'), ord('9')) +
-        range(ord('A'), ord('Z')) +
-        range(ord('a'), ord('z')) +
-        map(ord, '-_.~'))
+        list(map(ord, '0123456789')) +
+        list(map(ord, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')) +
+        list(map(ord, 'abcdefghijklmnopqrstuvwxyz')) +
+        list(map(ord, '-_.~')))
     for i in range(0, 256):
         if i % 16 == 0:
             f.write("\n  ")