def get_tag_uri(url, date):
 bits = urlparse(url)
 d = ''
 if (date is not None):
  d = (',%s' % datetime_safe.new_datetime(date).strftime('%Y-%m-%d'))
 return ('tag:%s%s:%s/%s' % (bits.hostname, d, bits.path, bits.fragment))

def get_tag_uri ( url , date ) : bits = urlparse ( url ) d = '' if ( date is not None ) : d = ( ',%s' % datetime_safe . new_datetime ( date ) . strftime ( '%Y-%m-%d' ) ) return ( 'tag:%s%s:%s/%s' % ( bits . hostname , d , bits . path , bits . fragment ) )
creates a taguri .