<s> from st2actions . runners . pythonrunner import Action <EOL> from bitbucket . bitbucket import Bitbucket <EOL> class BitBucketAction ( Action ) : <EOL> def __init__ ( self , config ) : <EOL> super ( BitBucketAction , self ) . __init__ ( config ) <EOL> def _get_client ( self , repo = None ) : <EOL> if repo : <EOL> bb = Bitbucket ( username = self . config [ '<STR_LIT:username>' ] , <EOL> password = self . config [ '<STR_LIT:password>' ] , <EOL> repo_name_or_slug = repo ) <EOL> else : <EOL> bb = Bitbucket ( username = self . config [ '<STR_LIT:email>' ] , <EOL> password = self . config [ '<STR_LIT:password>' ] ) <EOL> return bb </s>
