<s> from __future__ import unicode_literals <EOL> VERSION = ( ( <NUM_LIT:0> , <NUM_LIT:2> , <NUM_LIT:10> ) , ( '<STR_LIT:a>' , <NUM_LIT:0> ) ) <EOL> def get_version ( dev = True ) : <EOL> """<STR_LIT>""" <EOL> assert len ( VERSION ) == <NUM_LIT:2> <EOL> assert VERSION [ <NUM_LIT:1> ] [ <NUM_LIT:0> ] in ( '<STR_LIT:a>' , '<STR_LIT:b>' , '<STR_LIT>' , '<STR_LIT>' ) <EOL> version = '<STR_LIT:.>' . join ( map ( str , VERSION [ <NUM_LIT:0> ] ) ) <EOL> if VERSION [ <NUM_LIT:1> ] [ <NUM_LIT:0> ] == "<STR_LIT>" : <EOL> return version <EOL> version += VERSION [ <NUM_LIT:1> ] [ <NUM_LIT:0> ] + str ( VERSION [ <NUM_LIT:1> ] [ <NUM_LIT:1> ] ) <EOL> if VERSION [ <NUM_LIT:1> ] [ <NUM_LIT:1> ] == <NUM_LIT:0> and dev : <EOL> import os <EOL> import subprocess <EOL> import datetime <EOL> repo_dir = os . path . dirname ( os . path . dirname ( os . path . abspath ( __file__ ) ) ) <EOL> get_time = subprocess . Popen ( <EOL> '<STR_LIT>' , <EOL> stdout = subprocess . PIPE , <EOL> stderr = subprocess . PIPE , <EOL> shell = True , <EOL> cwd = repo_dir , <EOL> universal_newlines = True , <EOL> ) <EOL> timestamp = get_time . communicate ( ) [ <NUM_LIT:0> ] <EOL> try : <EOL> timestamp = datetime . datetime . utcfromtimestamp ( int ( timestamp ) ) <EOL> version += '<STR_LIT>' % timestamp . strftime ( '<STR_LIT>' ) <EOL> except ValueError : <EOL> pass <EOL> return version <EOL> __version__ = get_version ( dev = False ) <EOL> __docformat__ = '<STR_LIT>' <EOL> default_app_config = '<STR_LIT>' </s>
