fhdl/structure: style fix
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Sun, 17 Mar 2013 14:33:38 +0000 (15:33 +0100)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Sun, 17 Mar 2013 14:33:38 +0000 (15:33 +0100)
migen/fhdl/structure.py

index 84166dca0e47c5efb09458aa38cf8eb54514fa7f..be3c35514a06906cf3513fb6f4db9f01c8f71341 100644 (file)
@@ -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)