File: base.py

package info (click to toggle)
django-floppyforms 1.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,740 kB
  • ctags: 1,008
  • sloc: python: 4,477; makefile: 120
file content (12 lines) | stat: -rw-r--r-- 233 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
import sys

from django.utils import six


class InvalidVariable(six.text_type):
    if sys.version_info[0] >= 3:
        def __bool__(self):
            return False
    else:
        def __nonzero__(self):
            return False