Add support for Python 3 #373

Closed
wants to merge 34 commits into
from
Commits on Apr 8, 2013
  1. @graingert
  2. @graingert

    add <1.6 to tests_require

    graingert committed Apr 8, 2013
  3. @graingert

    use sqlparse from pypi

    graingert committed Apr 8, 2013
  4. @graingert
  5. @graingert
  6. @graingert
  7. @graingert
  8. @graingert
  9. @graingert
  10. @graingert
  11. @graingert
  12. @graingert
  13. @graingert
  14. @graingert
  15. @graingert
  16. @graingert
Commits on Apr 9, 2013
  1. @graingert
  2. @graingert
  3. @graingert

    use map from six

    graingert committed Apr 9, 2013
  4. @graingert
  5. @graingert
  6. @graingert
Commits on Apr 14, 2013
  1. @w-diesel

    fix print function

    w-diesel committed Apr 14, 2013
    => python2.6.5
  2. @w-diesel

    Update profiling.py, attr. "func_closure" ( py2.6)

    w-diesel committed Apr 14, 2013
    change attributes "func_code" -> "__code__" and "func_closure" -> "__closure__"   ( => python2.6 )
  3. @w-diesel

    remove u'' prefix, import __future__ unicode_lit..

    w-diesel committed Apr 14, 2013
    Remove u'' prefix, and import __future__ unicode_literals.
    Now all strings without the u'' - are Unicode.
    
    
    >>> from __future__ import unicode_literals
    >>> hasattr(str, '__name__')
    True
  4. @graingert
  5. @w-diesel @graingert

    list expected

    w-diesel committed with graingert Apr 14, 2013
  6. @w-diesel @graingert

    Update middleware.py

    w-diesel committed with graingert Apr 14, 2013
    from __future__ import unicode_literals
Commits on Apr 23, 2013
  1. @w-diesel @graingert

    cache.py, fix python3.2 support

    w-diesel committed with graingert Apr 15, 2013
  2. @w-diesel @graingert

    Update .travis.yml

    w-diesel committed with graingert Apr 16, 2013
    don't allow failures
  3. @w-diesel @graingert

    Masterbranch can pass all original tests on 1.5ver

    w-diesel committed with graingert Apr 16, 2013
    This commit allows masterbranch to pass all original tests with Django 1.5 (python2).
    
    Django 1.5 introduce python's bultins vars "True", "False", "None" to the Context, as part of  BaseContext class:
    
    """
    class BaseContext(object):
        def __init__(self, dict_=None):
            self._reset_dicts(dict_)
    
        def _reset_dicts(self, value=None):
            builtins = {'True': True, 'False': False, 'None': None}
            if value:
                builtins.update(value)
            self.dicts = [builtins]
    """
    django/django@93240b7
    
    So, now we always have List's first element that contains these vars.
    
    Should we see this in the django-debug-toolbar?
  4. @graingert
Commits on Apr 25, 2013
  1. @graingert
  2. @graingert