<s> from __future__ import unicode_literals <EOL> from . . messages import User <EOL> from . . messages import Tag <EOL> from . . requests import TagResponse <EOL> class GitDataTags : <EOL> def __init__ ( self , client ) : <EOL> self . client = client <EOL> def get ( self , repo , sha , user = None ) : <EOL> return self . client . get ( <EOL> '<STR_LIT>' % ( <EOL> self . client . user ( user ) , repo , sha ) , msg_type = TagResponse ) <EOL> def create ( self , repo , tag , message , object , type , tagger_name , <EOL> tagger_email , tagger_date , user = None ) : <EOL> msg = Tag ( <EOL> tag = tag , <EOL> message = message , <EOL> object = object , <EOL> type = type ) <EOL> msg . tagger = User ( <EOL> name = tagger_name , <EOL> email = tagger_email , <EOL> date = tagger_date ) <EOL> return self . _create ( repo = repo , user = user , msg = msg ) <EOL> def _create ( self , repo , msg , user = None ) : <EOL> return self . github . post ( <EOL> '<STR_LIT>' % ( <EOL> self . client . user ( user ) , repo ) , data = msg , msg_type = TagResponse ) </s>
