<s> """<STR_LIT>""" <EOL> from __future__ import unicode_literals <EOL> from django . forms . fields import RegexField , Select <EOL> from django . utils . translation import ugettext_lazy as _ <EOL> from . sk_districts import DISTRICT_CHOICES <EOL> from . sk_regions import REGION_CHOICES <EOL> class SKRegionSelect ( Select ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , attrs = None ) : <EOL> super ( SKRegionSelect , self ) . __init__ ( attrs , choices = REGION_CHOICES ) <EOL> class SKDistrictSelect ( Select ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , attrs = None ) : <EOL> super ( SKDistrictSelect , self ) . __init__ ( attrs , choices = DISTRICT_CHOICES ) <EOL> class SKPostalCodeField ( RegexField ) : <EOL> """<STR_LIT>""" <EOL> default_error_messages = { <EOL> '<STR_LIT>' : _ ( '<STR_LIT>' ) , <EOL> } <EOL> def __init__ ( self , max_length = None , min_length = None , * args , ** kwargs ) : <EOL> super ( SKPostalCodeField , self ) . __init__ ( r'<STR_LIT>' , <EOL> max_length , min_length , * args , ** kwargs ) <EOL> def clean ( self , value ) : <EOL> """<STR_LIT>""" <EOL> v = super ( SKPostalCodeField , self ) . clean ( value ) <EOL> return v . replace ( '<STR_LIT:U+0020>' , '<STR_LIT>' ) </s>
