Ticket #20016: jython_buffer_fix.diff

File jython_buffer_fix.diff, 494 bytes (added by andreas@…, 12 years ago)
  • django/utils/six.py

    diff --git a/django/utils/six.py b/django/utils/six.py
    index 208c5c1..d447fec 100644
    a b else:  
    401401    _assertRegex = "assertRegexpMatches"
    402402    # memoryview and buffer are not stricly equivalent, but should be fine for
    403403    # django core usage (mainly BinaryField)
    404     memoryview = buffer
     404    if sys.platform.startswith("java"):
     405        memoryview = memoryview
     406    else:
     407        memoryview = buffer
    405408
    406409
    407410def iterlists(d):
Back to Top