mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
_intdiv2() -> _floordiv(), merge of uncommitted changes.
This commit is contained in:
parent
e0d4972acc
commit
ff49279f7c
2 changed files with 8 additions and 8 deletions
|
@ -24,10 +24,10 @@ def walk(self):
|
||||||
return parts
|
return parts
|
||||||
|
|
||||||
|
|
||||||
# Used internally by the Header class
|
# Python 2.2 spells floor division //
|
||||||
def _floordiv(x, y):
|
def _floordiv(i, j):
|
||||||
"""Do integer division."""
|
"""Do a floor division, i/j."""
|
||||||
return x / y
|
return i / j
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -25,10 +25,10 @@ def walk(self):
|
||||||
yield subsubpart
|
yield subsubpart
|
||||||
|
|
||||||
|
|
||||||
# Used internally by the Header class
|
# Python 2.2 spells floor division //
|
||||||
def _floordiv(x, y):
|
def _floordiv(i, j):
|
||||||
"""Do integer division."""
|
"""Do a floor division, i/j."""
|
||||||
return x // y
|
return i // j
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue