mirror of
https://github.com/python/cpython.git
synced 2025-09-03 23:41:18 +00:00
New == syntax
This commit is contained in:
parent
4d8e859e8f
commit
bdfcfccbe5
73 changed files with 419 additions and 391 deletions
|
@ -43,7 +43,7 @@ class CSplit(Split):
|
|||
# XXX One day Python will have automatic conversions...
|
||||
n = len(self.children)
|
||||
fn = float(n)
|
||||
if n = 0: return
|
||||
if n == 0: return
|
||||
(left, top), (right, bottom) = bounds
|
||||
width, height = right-left, bottom-top
|
||||
child_width, child_height = width*3/(n+4), height*3/(n+4)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue