<s> from __future__ import absolute_import , unicode_literals <EOL> from werkzeug . routing import BaseConverter , IntegerConverter <EOL> class ColorConverter ( BaseConverter ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , url_map ) : <EOL> super ( ColorConverter , self ) . __init__ ( url_map ) <EOL> self . regex = "<STR_LIT>" <EOL> class ImgSizeConverter ( IntegerConverter ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , url_map ) : <EOL> super ( ImgSizeConverter , self ) . __init__ ( url_map , min = <NUM_LIT:1> , max = <NUM_LIT> ) <EOL> class AlphaConverter ( IntegerConverter ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , url_map ) : <EOL> super ( AlphaConverter , self ) . __init__ ( url_map , min = <NUM_LIT:0> , max = <NUM_LIT:255> ) </s>
