|
@@ -61,14 +61,14 @@ def mutadd(expr):
|
61
|
61
|
return expr
|
62
|
62
|
|
63
|
63
|
def mutdel(expr):
|
64
|
|
- if len(expr) == 1:
|
|
64
|
+ if len(expr) <= 1:
|
65
|
65
|
return mutadd(expr)
|
66
|
66
|
pos = randint(0, len(expr)-1)
|
67
|
67
|
del(expr[pos])
|
68
|
68
|
return expr
|
69
|
69
|
|
70
|
70
|
def mutupdtype(expr):
|
71
|
|
- if len(expr) == 1:
|
|
71
|
+ if len(expr) <= 1:
|
72
|
72
|
pos = 0
|
73
|
73
|
else:
|
74
|
74
|
pos = randint(0, len(expr) - 1)
|
|
@@ -78,7 +78,7 @@ def mutupdtype(expr):
|
78
|
78
|
return expr
|
79
|
79
|
|
80
|
80
|
def mutupdval(expr):
|
81
|
|
- if len(expr) == 1:
|
|
81
|
+ if len(expr) <= 1:
|
82
|
82
|
pos = 0
|
83
|
83
|
else:
|
84
|
84
|
pos = randint(0, len(expr) - 1)
|