From b6fe3ace058ba8ccb57f71e5ce9b9052f8955882 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 17 Mar 2013 15:33:38 +0100 Subject: [PATCH] fhdl/structure: style fix --- migen/fhdl/structure.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/migen/fhdl/structure.py b/migen/fhdl/structure.py index 84166dca..be3c3551 100644 --- a/migen/fhdl/structure.py +++ b/migen/fhdl/structure.py @@ -89,15 +89,15 @@ class Value(HUID): def __getitem__(self, key): if isinstance(key, int): - if (key < 0): + if key < 0: key += len(self) return _Slice(self, key, key+1) elif isinstance(key, slice): start = key.start or 0 stop = key.stop or len(self) - if (start < 0): + if start < 0: start += len(self) - if (stop < 0): + if stop < 0: stop += len(self) if stop > len(self): stop = len(self) -- 2.30.2