#11316 closed (fixed)
Changeset [10966] broken python 2.3 support
Reported by: | Kyle Fuller | Owned by: | Kyle Fuller |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
"FutureWarning: x<<y losing bits or changing sign will return a long in Python 2.4 and up"
Changeset [10966] used 1<<32 which will return 0 in python 2.3, and 4294967296L in newer versions. I have simply changed 1<<32 and hard coded the value in (4294967296L)
Attachments (1)
Change History (4)
comment:1 by , 15 years ago
milestone: | 1.0.3 → 1.1 |
---|---|
Triage Stage: | Unreviewed → Accepted |
Version: | 1.0 → SVN |
by , 15 years ago
Attachment: | 301ab5fb6095ef19c1c0cb12a3879e597d2317ee.diff added |
---|
comment:2 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Patch attached and on my git repo at github http://github.com/kylef/django/commit/301ab5fb6095ef19c1c0cb12a3879e597d2317ee