mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-26 21:11:06 +00:00
Remove trailing whitespace and fix indentation in generated C file
This commit is contained in:
parent
33b9ff6d2d
commit
ddeb55ad32
|
@ -244,7 +244,7 @@ class MacroCollector:
|
||||||
def make_key_type_code(self):
|
def make_key_type_code(self):
|
||||||
d = self.key_types_from_curve
|
d = self.key_types_from_curve
|
||||||
make = self.make_key_type_from_curve_code
|
make = self.make_key_type_from_curve_code
|
||||||
return '\n '.join([make(k, d[k]) for k in sorted(d.keys())])
|
return ''.join([make(k, d[k]) for k in sorted(d.keys())])
|
||||||
|
|
||||||
def make_hash_algorithm_cases(self):
|
def make_hash_algorithm_cases(self):
|
||||||
return '\n '.join(map(self.make_return_case,
|
return '\n '.join(map(self.make_return_case,
|
||||||
|
@ -266,7 +266,7 @@ class MacroCollector:
|
||||||
def make_algorithm_code(self):
|
def make_algorithm_code(self):
|
||||||
d = self.algorithms_from_hash
|
d = self.algorithms_from_hash
|
||||||
make = self.make_algorithm_from_hash_code
|
make = self.make_algorithm_from_hash_code
|
||||||
return '\n '.join([make(k, d[k]) for k in sorted(d.keys())])
|
return ''.join([make(k, d[k]) for k in sorted(d.keys())])
|
||||||
|
|
||||||
def make_key_usage_code(self):
|
def make_key_usage_code(self):
|
||||||
return '\n'.join([self.make_bit_test('usage', bit)
|
return '\n'.join([self.make_bit_test('usage', bit)
|
||||||
|
|
Loading…
Reference in a new issue