[elbe-devel] [PATCH v3 2/4] treeutils: add get_parent

Torben Hohn torben.hohn at linutronix.de
Tue Sep 17 17:59:22 CEST 2019


On Tue, Sep 17, 2019 at 03:29:34PM +0200, Akash Satamkar wrote:

no commitlog.

why do you add this ?
where do you add this ?

> Signed-off-by: Akash Satamkar <akash at linutronix.de>
> ---
>  elbepack/treeutils.py | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/elbepack/treeutils.py b/elbepack/treeutils.py
> index b1ac3711..16308a42 100644
> --- a/elbepack/treeutils.py
> +++ b/elbepack/treeutils.py
> @@ -113,6 +113,9 @@ class elem(ebase):
>          elif attr in ['false', '0']:
>              return False
>  
> +    def get_parent(self):
> +        return elem(self.et.getparent())
> +
>  
>  class etree(ebase):
>      def __init__(self, fname):
> -- 
> 2.20.1
> 
> 
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel

-- 
Torben Hohn
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99

Hinweise zum Datenschutz finden Sie hier (Informations on data privacy 
can be found here): https://linutronix.de/kontakt/Datenschutz.php

Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen | 
Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700 
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas Gleixner



More information about the elbe-devel mailing list