Example #1
0
    def _parse_api_name(self, api_names):
        """
        Remove API pattern 'API' and appendix 'MSG'
        """
        short_api_name = []
        for api in api_names:
            if api.endswith('Msg'):
                short_api_name.append(api[3:-3])

        short_api_name.sort()
        return short_api_name
Example #2
0
    def _parse_api_name(self, api_names):
        '''
        Remove API pattern 'API' and appendix 'MSG'
        '''
        short_api_name = []
        for api in api_names:
            if api.endswith('Msg'):
                short_api_name.append(api[3:-3])

        short_api_name.sort()
        return short_api_name