<s> """<STR_LIT>""" <EOL> import re <EOL> from django . utils . translation import ugettext_lazy as _ <EOL> CA_POSTCODE_RE = re . compile ( r'<STR_LIT>' ) <EOL> def validate ( postcode ) : <EOL> postcode = postcode . upper ( ) <EOL> m = CA_POSTCODE_RE . match ( postcode ) <EOL> if m : <EOL> return m . group ( '<STR_LIT>' ) + m . group ( '<STR_LIT>' ) <EOL> else : <EOL> raise ValueError ( _ ( '<STR_LIT>' ) ) </s>
