From: Vivien Maisonneuve Date: Wed, 18 Jun 2014 18:19:28 +0000 (+0200) Subject: Simplify BasicSet.__str__ X-Git-Tag: 1.0~247 X-Git-Url: https://scm.cri.mines-paristech.fr/git/linpy.git/commitdiff_plain/a3be1b6748e49fa15003b073c35a92e7ec818ebd?hp=3b1b3560c8880ef25995a18b6e365e0d730a2df2 Simplify BasicSet.__str__ --- diff --git a/pypol/isl.py b/pypol/isl.py index 5a20514..00d0818 100644 --- a/pypol/isl.py +++ b/pypol/isl.py @@ -53,6 +53,5 @@ class BasicSet(IslObject): ctx = libisl.isl_local_space_get_ctx(ls) p = libisl.isl_printer_to_str(ctx) p = libisl.isl_printer_print_basic_set(p, self) - string = libisl.isl_printer_get_str(p) - string = str(string.decode()) + string = libisl.isl_printer_get_str(p).decode() return string