1414flexible_true_trait = traits .Trait (
1515 True ,
1616 {'true' : True , 't' : True , 'yes' : True , 'y' : True , 'on' : True , True : True ,
17- 'false' : False , 'f' : False , 'no' : False , 'n' : False , 'off' : False , False : False
18- })
17+ 'false' : False , 'f' : False , 'no' : False , 'n' : False , 'off' : False , False : False
18+ })
1919flexible_false_trait = traits .Trait (False , flexible_true_trait )
2020
2121colors = {
@@ -95,7 +95,7 @@ def float_to_rgba(ob, name, val):
9595
9696
9797Color = traits .Trait (RGBA (), float_to_rgba , colorname_to_rgba , RGBA ,
98- hex_to_rgba , tuple_to_rgba )
98+ hex_to_rgba , tuple_to_rgba )
9999
100100
101101def file_exists (ob , name , val ):
@@ -105,14 +105,14 @@ def file_exists(ob, name, val):
105105linestyles = ('-' , '--' , '-.' , ':' , 'steps' , 'None' )
106106TICKLEFT , TICKRIGHT , TICKUP , TICKDOWN = range (4 )
107107linemarkers = (None , '.' , ',' , 'o' , '^' , 'v' , '<' , '>' , 's' ,
108- '+' , 'x' , 'd' , 'D' , '|' , '_' , 'h' , 'H' ,
109- 'p' , '1' , '2' , '3' , '4' ,
110- TICKLEFT ,
111- TICKRIGHT ,
112- TICKUP ,
113- TICKDOWN ,
114- 'None'
115- )
108+ '+' , 'x' , 'd' , 'D' , '|' , '_' , 'h' , 'H' ,
109+ 'p' , '1' , '2' , '3' , '4' ,
110+ TICKLEFT ,
111+ TICKRIGHT ,
112+ TICKUP ,
113+ TICKDOWN ,
114+ 'None'
115+ )
116116
117117
118118class LineRC (traits .HasTraits ):
@@ -136,8 +136,8 @@ class PatchRC(traits.HasTraits):
136136
137137timezones = 'UTC' , 'US/Central' , 'ES/Eastern' # fixme: and many more
138138backends = ('GTKAgg' , 'Cairo' , 'GDK' , 'GTK' , 'Agg' ,
139- 'GTKCairo' , 'PS' , 'SVG' , 'Template' , 'TkAgg' ,
140- 'WX' )
139+ 'GTKCairo' , 'PS' , 'SVG' , 'Template' , 'TkAgg' ,
140+ 'WX' )
141141
142142
143143class RC (traits .HasTraits ):
0 commit comments