def time(self, time=None, format='medium'):
        return format_time(time, format, tzinfo=self.tzinfo, locale=self.locale)
Ensure that obj __repr__ and __str__ methods are yaml friendly.
dataset/ETHPy150Open lad1337/XDM/site-packages/babel/support.py/Format.time--crossover with--dataset/ETHPy150Open saltstack/salt/tests/unit/serializers/serializers_test.py/TestSerializers.test_sls_repr