Did I find the right examples for you? yes no

All Samples(8)  |  Call(0)  |  Derive(0)  |  Import(8)
Utilities for writing code that runs on Python 2 and 3

src/d/j/django-nodetree-0.1.1/nodetree/fields.py   django-nodetree(Download)
 
from rest_framework.compat import  urlparse
from rest_framework import six
from rest_framework import serializers
from rest_framework.exceptions import ConfigurationError

src/t/r/treeherder-service-HEAD/vendor/rest_framework/compat.py   treeherder-service(Download)
    from django.utils import six
except ImportError:
    from rest_framework import six
 
# location of patterns, url, include changes in 1.4 onwards

src/d/j/djangorestframework-2.3.13/rest_framework/compat.py   djangorestframework(Download)
    from django.utils import six
except ImportError:
    from rest_framework import six
 
# location of patterns, url, include changes in 1.4 onwards

src/d/j/django-rest-framework-HEAD/rest_framework/compat.py   django-rest-framework(Download)
    from django.utils import six
except ImportError:
    from rest_framework import six
 
# location of patterns, url, include changes in 1.4 onwards

src/l/i/lightforum-HEAD/rest_framework/compat.py   lightforum(Download)
    from django.utils import six
except ImportError:
    from rest_framework import six
 
# location of patterns, url, include changes in 1.4 onwards

src/d/j/django-nodetree-0.1.1/nodetree/settings.py   django-nodetree(Download)
# -*- coding: utf-8 -*-
# Inspired by Django REST Framework's excellent settings handling
from __future__ import unicode_literals
from rest_framework import six
 

src/d/j/django-nodetree-0.1.1/nodetree/maps.py   django-nodetree(Download)
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from rest_framework import six
 
class SimpleMap(object):

src/d/r/drf-extensions-0.2.3/rest_framework_extensions/compat.py   drf-extensions(Download)
    from django.utils import six
except ImportError:
    from rest_framework import six
 
# location of patterns, url, include changes in 1.4 onwards