Two mistakes here:
- res[:-1] will copy but lost the last char
- string is immutable in python, there is no need to copy it explicitly
Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
else:
raise Exception("Unknown --view option value.")
#
- self.screen_output = res[1][:-1]
- other.screen_output = res[1][:-1]
+ self.screen_output = res[1]
+ other.screen_output = res[1]
#
return res[0]
other.summary["unique_attrs"] += other.unique_attrs
other.summary["df_value_attrs"] += self.df_value_attrs # they are the same
#
- self.screen_output = res[:-1]
- other.screen_output = res[:-1]
+ self.screen_output = res
+ other.screen_output = res
#
return res == ""