@@ -405,8 +405,8 @@ def str2value(self, value):
405
405
class IsolationOption (Option ):
406
406
"""Database isolation levels"""
407
407
408
- allowed = [ 'read uncommitted' , 'read committed' , 'repeatable read' ,
409
- 'serializable' ]
408
+ allowed = ( 'read uncommitted' , 'read committed' , 'repeatable read' ,
409
+ 'serializable' )
410
410
class_description = "Allowed values: %s" % ', ' .join ("'%s'" % a
411
411
for a in allowed )
412
412
@@ -420,15 +420,15 @@ def str2value(self, value):
420
420
class IndexerOption (Option ):
421
421
"""Valid options for indexer"""
422
422
423
- allowed = [ '' , 'xapian' , 'whoosh' , 'native' , 'native-fts' ]
423
+ allowed = ( '' , 'xapian' , 'whoosh' , 'native' , 'native-fts' )
424
424
class_description = "Allowed values: %s" % ', ' .join ("'%s'" % a
425
425
for a in allowed )
426
426
427
427
# FIXME this is the result of running:
428
428
# SELECT cfgname FROM pg_ts_config;
429
429
# on a postgresql 14.1 server.
430
430
# So the best we can do is hardcode this.
431
- valid_langs = [ "simple" ,
431
+ valid_langs = ( "simple" ,
432
432
"custom1" ,
433
433
"custom2" ,
434
434
"custom3" ,
@@ -461,7 +461,7 @@ class IndexerOption(Option):
461
461
"swedish" ,
462
462
"tamil" ,
463
463
"turkish" ,
464
- "yiddish" ]
464
+ "yiddish" )
465
465
466
466
def str2value (self , value ):
467
467
_val = value .lower ()
@@ -863,15 +863,15 @@ class SessiondbBackendOption(Option):
863
863
Fail with error and suggestions if they are incompatible.
864
864
"""
865
865
866
- compatibility_matrix = [
866
+ compatibility_matrix = (
867
867
('anydbm' , 'anydbm' ),
868
868
('anydbm' , 'redis' ),
869
869
('sqlite' , 'anydbm' ),
870
870
('sqlite' , 'sqlite' ),
871
871
('sqlite' , 'redis' ),
872
872
('mysql' , 'mysql' ),
873
873
('postgresql' , 'postgresql' ),
874
- ]
874
+ )
875
875
876
876
def validate (self , options ):
877
877
''' make sure session db is compatible with primary db.
0 commit comments