On 30.09.19 21:13, Andrej Utz wrote:
> From: Ralf Ramsauer <[email protected]>
> 
> There are no callers of __str__. Remove it. Seems to be a development
> artifact of earlier versions.

How did you validate this?

> 
> Signed-off-by: Ralf Ramsauer <[email protected]>
> ---
>  pyjailhouse/sysfs_parser.py | 11 -----------
>  1 file changed, 11 deletions(-)
> 
> diff --git a/pyjailhouse/sysfs_parser.py b/pyjailhouse/sysfs_parser.py
> index 67dc85d0..f65eacc8 100644
> --- a/pyjailhouse/sysfs_parser.py
> +++ b/pyjailhouse/sysfs_parser.py
> @@ -831,17 +831,6 @@ class IOMemRegionTree:
>          self.parent = None
>          self.children = []
>  
> -    def __str__(self):
> -        s = ''
> -        if (self.region):
> -            s = (' ' * (self.level - 1)) + str(self.region)
> -            if self.parent and self.parent.region:
> -                s += ' --> ' + self.parent.region.typestr
> -            s += '\n'
> -        for c in self.children:
> -            s += str(c)
> -        return s
> -
>      def regions_split_by_kernel(self):
>          kernel = [x for x in self.children if
>                    x.region.typestr.startswith('Kernel ')]
> 

Jan

-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/2bbcdc0e-40f6-86bf-cae3-61e9ce00bb75%40siemens.com.

Reply via email to