1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-02-27 09:57:43 +03:00
Radostin Stoyanov e390bb1571 apibuild: Simplify conditional statements
Improve readability by reducing the complexity and length of
conditional statements.

Example: The following condition:

	if (o >= 97 and o <= 122) or
	   (o >= 65 and o <= 90) or
	   (o >= 48 and o <= 57) or
	   (" \t(){}:;,+-*/%&!|[]=><".find(line[i]) == -1):

Will be True for every character that is not in string:
	" \t(){}:;,+-*/%&!|[]=><"

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Radostin Stoyanov <rstoyanov1@gmail.com>
2018-03-20 12:13:35 +00:00
..
2017-10-16 10:22:34 +01:00
2016-11-21 13:15:12 +01:00
2017-10-16 10:22:34 +01:00
2017-11-15 13:52:13 +01:00
2017-10-16 10:22:34 +01:00
2017-08-02 15:00:28 -04:00
2017-01-10 19:37:53 +01:00
2017-10-16 10:22:34 +01:00