diff options
author | David Shah <davey1576@gmail.com> | 2017-11-20 09:43:54 +0000 |
---|---|---|
committer | David Shah <davey1576@gmail.com> | 2017-11-20 09:43:54 +0000 |
commit | da7a2a9d0db95d6a172286eaddd6e930a27ea752 (patch) | |
tree | e045aeca40b61e9e1a316dfb3f7daafa34c42ef8 /icebox | |
parent | 8c0fe225ca925caed45f721303b55386b8944e62 (diff) | |
download | icestorm-da7a2a9d0db95d6a172286eaddd6e930a27ea752.tar.gz icestorm-da7a2a9d0db95d6a172286eaddd6e930a27ea752.tar.bz2 icestorm-da7a2a9d0db95d6a172286eaddd6e930a27ea752.zip |
Fix whitespace and a couple of typos
Diffstat (limited to 'icebox')
-rw-r--r-- | icebox/icebox.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/icebox/icebox.py b/icebox/icebox.py index 6b0dfd8..5e94f31 100644 --- a/icebox/icebox.py +++ b/icebox/icebox.py @@ -642,7 +642,7 @@ class iceconfig: if s[0] == 0 and s[1] == 0: if direction == "l": s = (0, 1, vert_net) if direction == "b": s = (1, 0, horz_net) - + if s[0] == self.max_x and s[1] == self.max_y: if direction == "r": s = (self.max_x, self.max_y-1, vert_net) if direction == "t": s = (self.max_x-1, self.max_y, horz_net) @@ -677,11 +677,11 @@ class iceconfig: if s[0] == 0 and s[1] == self.max_y: if direction == "l": s = (0, self.max_y-1, vert_net) if direction == "t": s = (1, self.max_y, horz_net) - + if s[0] == self.max_x and s[1] == 0: if direction == "r": s = (self.max_x, 1, vert_net) if direction == "b": s = (self.max_x-1, 0, horz_net) - + if self.tile_has_net(s[0], s[1], s[2]): neighbours.add((s[0], s[1], s[2])) |