def include_version(version):
 kwargs = {}
 if (version != settings.API_CURRENT_VERSION):
  kwargs['namespace'] = ('api-v%d' % version)
 return include(('mkt.api.v%d.urls' % version), **kwargs)

def include_version ( version ) : kwargs = { } if ( version != settings . API_CURRENT_VERSION ) : kwargs [ 'namespace' ] = ( 'api-v%d' % version ) return include ( ( 'mkt.api.v%d.urls' % version ) , ** kwargs )
returns an include statement containing url patterns for the passed api version .