]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
toaster: use // operator instead of /
authorEd Bartosh <ed.bartosh@linux.intel.com>
Mon, 30 May 2016 12:51:20 +0000 (15:51 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 1 Jun 2016 14:28:23 +0000 (15:28 +0100)
commit0c38441ed99b49dae8ef9613e320f0760853d6aa
tree8603157e5fe42662189b476cb6d3ebaa00f41560
parent750ca5c8d5a25fc519b75c56352dec7823c7e240
toaster: use // operator instead of /

Division operator works differently in Python 3. It results in
float unlike in Python 2, where it results in int.

Explicitly used "floor division" operator instead of 'division'
operator. This should make the code to result in integer under
both pythons.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/toaster/orm/models.py
lib/toaster/toastergui/templatetags/projecttags.py