Removed all __future__ imports.

- Legacy-Id: 17391
This commit is contained in:
Henrik Levkowetz 2020-03-05 23:53:42 +00:00
parent ab173cb2eb
commit 726fcbf27d
463 changed files with 418 additions and 1277 deletions

7
PLAN
View file

@ -7,13 +7,6 @@ Updated: $Date$
Planned work in rough order Planned work in rough order
=========================== ===========================
* Refactor the use of urlopen(). This is triggered by the transition to
python 3: All instances of .read() from urlopen() objects return byte
streams under Python 3, while the code wants to deal with str objects, which
are unicode under Python 3. Instead of building our own adapter to extract
the charset and do the decoding, we should transition to the 'requests'
module, which provides decoded unicode text directly from the response.
* Transition to Django 2.x (depends on Python 3.x). Security updates to * Transition to Django 2.x (depends on Python 3.x). Security updates to
Django 1.11 will cease around April 2020. Django 1.11 will cease around April 2020.

View file

@ -33,7 +33,7 @@ COPYRIGHT
Open Source Initiative at http://opensource.org/licenses/BSD-2-Clause. Open Source Initiative at http://opensource.org/licenses/BSD-2-Clause.
""" """
from __future__ import print_function
import datetime import datetime
import os import os

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
from __future__ import print_function
import os import os
import subprocess import subprocess

View file

@ -2,8 +2,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
from . import checks # pyflakes:ignore from . import checks # pyflakes:ignore
# Don't add patch number here: # Don't add patch number here:

View file

@ -2,8 +2,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import datetime import datetime
import re import re

View file

@ -1,6 +1,6 @@
# Copyright The IETF Trust 2014-2019, All Rights Reserved # Copyright The IETF Trust 2014-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import os import os
import datetime import datetime

View file

@ -2,8 +2,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import hashlib import hashlib
import json import json

View file

@ -1,9 +1,7 @@
# Copyright The IETF Trust 2015-2019, All Rights Reserved # Copyright The IETF Trust 2015-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import os import os
import sys import sys

View file

@ -1,6 +1,6 @@
# Copyright The IETF Trust 2017-2019, All Rights Reserved # Copyright The IETF Trust 2017-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
from jwcrypto.jwk import JWK from jwcrypto.jwk import JWK

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
from __future__ import print_function
import os, sys import os, sys
import syslog import syslog

View file

@ -2,8 +2,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import os import os
import sys import sys
import time import time

View file

@ -1,6 +1,6 @@
# Copyright The IETF Trust 2017-2019, All Rights Reserved # Copyright The IETF Trust 2017-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
from django.contrib import admin from django.contrib import admin

View file

@ -1,9 +1,7 @@
# Copyright The IETF Trust 2012-2019, All Rights Reserved # Copyright The IETF Trust 2012-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
from django import forms from django import forms
from django.db.models import Q from django.db.models import Q

View file

@ -1,7 +1,7 @@
# Copyright The IETF Trust 2018-2020, All Rights Reserved # Copyright The IETF Trust 2018-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.10 on 2018-02-20 10:52 # Generated by Django 1.11.10 on 2018-02-20 10:52
from __future__ import absolute_import, print_function, unicode_literals
from typing import List, Tuple # pyflakes:ignore from typing import List, Tuple # pyflakes:ignore

View file

@ -1,10 +1,8 @@
# Copyright The IETF Trust 2018-2019, All Rights Reserved # Copyright The IETF Trust 2018-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.10 on 2018-02-20 10:52 # Generated by Django 1.11.10 on 2018-02-20 10:52
from __future__ import absolute_import, print_function, unicode_literals
from django.conf import settings from django.conf import settings
from django.db import migrations, models from django.db import migrations, models
import django.db.models.deletion import django.db.models.deletion

View file

@ -1,10 +1,8 @@
# Copyright The IETF Trust 2019, All Rights Reserved # Copyright The IETF Trust 2019-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-05-21 14:23 # Generated by Django 1.11.20 on 2019-05-21 14:23
from __future__ import absolute_import, print_function, unicode_literals
from django.db import migrations, models from django.db import migrations, models
import django.db.models.deletion import django.db.models.deletion
import ietf.utils.models import ietf.utils.models

View file

@ -1,10 +1,8 @@
# Copyright The IETF Trust 2019, All Rights Reserved # Copyright The IETF Trust 2019-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-05-21 14:27 # Generated by Django 1.11.20 on 2019-05-21 14:27
from __future__ import absolute_import, print_function, unicode_literals
import sys import sys
from tqdm import tqdm from tqdm import tqdm

View file

@ -1,10 +1,8 @@
# Copyright The IETF Trust 2019, All Rights Reserved # Copyright The IETF Trust 2019-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-05-22 08:15 # Generated by Django 1.11.20 on 2019-05-22 08:15
from __future__ import absolute_import, print_function, unicode_literals
from django.db import migrations from django.db import migrations

View file

@ -1,10 +1,8 @@
# Copyright The IETF Trust 2019, All Rights Reserved # Copyright The IETF Trust 2019-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-05-22 08:15 # Generated by Django 1.11.20 on 2019-05-22 08:15
from __future__ import absolute_import, print_function, unicode_literals
from django.db import migrations, models from django.db import migrations, models

View file

@ -1,10 +1,8 @@
# Copyright The IETF Trust 2019, All Rights Reserved # Copyright The IETF Trust 2019-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-05-27 05:56 # Generated by Django 1.11.20 on 2019-05-27 05:56
from __future__ import absolute_import, print_function, unicode_literals
from django.db import migrations from django.db import migrations
import sys, time import sys, time

View file

@ -1,10 +1,8 @@
# Copyright The IETF Trust 2019, All Rights Reserved # Copyright The IETF Trust 2019-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-05-30 03:06 # Generated by Django 1.11.20 on 2019-05-30 03:06
from __future__ import absolute_import, print_function, unicode_literals
from django.db import migrations from django.db import migrations

View file

@ -1,9 +1,7 @@
# Copyright The IETF Trust 2012-2019, All Rights Reserved # Copyright The IETF Trust 2012-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
from django.contrib.auth.models import User from django.contrib.auth.models import User
from django.db import models from django.db import models
from django.db.models import signals from django.db.models import signals

View file

@ -1,9 +1,7 @@
# Copyright The IETF Trust 2016-2019, All Rights Reserved # Copyright The IETF Trust 2016-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
from pyquery import PyQuery from pyquery import PyQuery
from django.urls import reverse as urlreverse from django.urls import reverse as urlreverse

View file

@ -1,9 +1,7 @@
# Copyright The IETF Trust 2016-2019, All Rights Reserved # Copyright The IETF Trust 2016-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import re import re
from django.db.models import Q from django.db.models import Q

View file

@ -2,8 +2,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import csv import csv
import datetime import datetime
import json import json

View file

@ -1,9 +1,7 @@
# Copyright The IETF Trust 2010-2019, All Rights Reserved # Copyright The IETF Trust 2010-2020, All Rights Reserved
# coding: latin-1 # coding: latin-1
from __future__ import absolute_import, print_function, unicode_literals
from types import ModuleType from types import ModuleType
# These people will be sent a stack trace if there's an uncaught exception in # These people will be sent a stack trace if there's an uncaught exception in

View file

@ -1,11 +1,9 @@
# Copyright The IETF Trust 2015-2019, All Rights Reserved # Copyright The IETF Trust 2015-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
from pyquery import PyQuery from pyquery import PyQuery
from six.moves.http_cookies import SimpleCookie from http.cookies import SimpleCookie
from django.urls import reverse as urlreverse from django.urls import reverse as urlreverse

View file

@ -1,9 +1,7 @@
# Copyright The IETF Trust 2010-2019, All Rights Reserved # Copyright The IETF Trust 2010-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
from django.shortcuts import render from django.shortcuts import render
from django.conf import settings from django.conf import settings

View file

@ -1,9 +1,7 @@
# Copyright The IETF Trust 2012-2019, All Rights Reserved # Copyright The IETF Trust 2012-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
from django import forms from django import forms
from django.core.exceptions import ValidationError from django.core.exceptions import ValidationError
from django.template import Context from django.template import Context

View file

@ -1,13 +1,9 @@
# Copyright The IETF Trust 2018-2019, All Rights Reserved # Copyright The IETF Trust 2018-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.10 on 2018-02-20 10:52 # Generated by Django 1.11.10 on 2018-02-20 10:52
from __future__ import absolute_import, print_function, unicode_literals from typing import List, Tuple # pyflakes:ignore
import six
if six.PY3:
from typing import List, Tuple # pyflakes:ignore
from django.db import migrations, models from django.db import migrations, models

View file

@ -1,10 +1,8 @@
# Copyright The IETF Trust 2018-2019, All Rights Reserved # Copyright The IETF Trust 2018-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.10 on 2018-02-20 10:52 # Generated by Django 1.11.10 on 2018-02-20 10:52
from __future__ import absolute_import, print_function, unicode_literals
from django.db import migrations from django.db import migrations
import django.db.models.deletion import django.db.models.deletion
import ietf.utils.models import ietf.utils.models

View file

@ -1,10 +1,8 @@
# Copyright The IETF Trust 2019, All Rights Reserved # Copyright The IETF Trust 2019-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-03-05 11:39 # Generated by Django 1.11.20 on 2019-03-05 11:39
from __future__ import absolute_import, print_function, unicode_literals
from django.db import migrations from django.db import migrations
def forward(apps, schema_editor): def forward(apps, schema_editor):

View file

@ -1,10 +1,8 @@
# Copyright The IETF Trust 2019, All Rights Reserved # Copyright The IETF Trust 2019-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-03-13 13:41 # Generated by Django 1.11.20 on 2019-03-13 13:41
from __future__ import absolute_import, print_function, unicode_literals
from django.db import migrations from django.db import migrations
def forward(apps, schema_editor): def forward(apps, schema_editor):

View file

@ -1,10 +1,8 @@
# Copyright The IETF Trust 2019, All Rights Reserved # Copyright The IETF Trust 2019-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-03-13 13:41 # Generated by Django 1.11.20 on 2019-03-13 13:41
from __future__ import absolute_import, print_function, unicode_literals
from django.db import migrations from django.db import migrations
def forward(apps, schema_editor): def forward(apps, schema_editor):

View file

@ -1,9 +1,7 @@
# Copyright The IETF Trust 2019, All Rights Reserved # Copyright The IETF Trust 2019-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
from django.db import migrations from django.db import migrations
def forward(apps, schema_editor): def forward(apps, schema_editor):

View file

@ -1,7 +1,7 @@
# Copyright The IETF Trust 2019, All Rights Reserved # Copyright The IETF Trust 2019-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.26 on 2019-11-19 11:47 # Generated by Django 1.11.26 on 2019-11-19 11:47
from __future__ import unicode_literals
from django.db import migrations from django.db import migrations

View file

@ -1,7 +1,7 @@
# Copyright The IETF Trust 2020, All Rights Reserved # Copyright The IETF Trust 2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.27 on 2020-01-07 09:25 # Generated by Django 1.11.27 on 2020-01-07 09:25
from __future__ import unicode_literals
from django.db import migrations from django.db import migrations

View file

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Copyright The IETF Trust 2012-2019, All Rights Reserved # Copyright The IETF Trust 2012-2020, All Rights Reserved
from __future__ import absolute_import, print_function, unicode_literals
from django.db import models from django.db import models
from django.core.exceptions import ValidationError from django.core.exceptions import ValidationError

View file

@ -1,9 +1,7 @@
# Copyright The IETF Trust 2012-2019, All Rights Reserved # Copyright The IETF Trust 2012-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import os import os
import string import string
from docutils.core import publish_string from docutils.core import publish_string

View file

@ -2,8 +2,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
from django.contrib import admin from django.contrib import admin
from django.db import models from django.db import models
from django import forms from django import forms

View file

@ -3,8 +3,6 @@
# expiry of Internet Drafts # expiry of Internet Drafts
from __future__ import absolute_import, print_function, unicode_literals
from django.conf import settings from django.conf import settings
import datetime, os, shutil, glob, re import datetime, os, shutil, glob, re

View file

@ -2,8 +2,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import debug # pyflakes:ignore import debug # pyflakes:ignore
import factory import factory
import factory.fuzzy import factory.fuzzy

View file

@ -2,8 +2,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import datetime import datetime
from django.contrib.syndication.views import Feed, FeedDoesNotExist from django.contrib.syndication.views import Feed, FeedDoesNotExist

View file

@ -2,8 +2,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import json import json
from django.utils.html import escape from django.utils.html import escape

View file

@ -1,10 +1,7 @@
# Copyright The IETF Trust 2013-2019, All Rights Reserved # Copyright The IETF Trust 2013-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import datetime import datetime
import debug #pyflakes:ignore import debug #pyflakes:ignore
from django import forms from django import forms

View file

@ -3,8 +3,6 @@
# generation of mails # generation of mails
from __future__ import absolute_import, print_function, unicode_literals
import datetime import datetime
import textwrap import textwrap

View file

@ -1,9 +1,7 @@
# Copyright The IETF Trust 2019, All Rights Reserved # Copyright The IETF Trust 2019-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import os import os
from collections import Counter from collections import Counter

View file

@ -1,7 +1,6 @@
# Copyright The IETF Trust 2018-2019, All Rights Reserved # Copyright The IETF Trust 2012-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import datetime import datetime
import io import io

View file

@ -1,10 +1,8 @@
# Copyright The IETF Trust 2018-2019, All Rights Reserved # Copyright The IETF Trust 2018-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.10 on 2018-02-20 10:52 # Generated by Django 1.11.10 on 2018-02-20 10:52
from __future__ import absolute_import, print_function, unicode_literals
import datetime import datetime
import django.core.validators import django.core.validators
from django.db import migrations, models from django.db import migrations, models

View file

@ -1,10 +1,8 @@
# Copyright The IETF Trust 2018-2019, All Rights Reserved # Copyright The IETF Trust 2018-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.10 on 2018-02-20 10:52 # Generated by Django 1.11.10 on 2018-02-20 10:52
from __future__ import absolute_import, print_function, unicode_literals
from django.db import migrations, models from django.db import migrations, models
import django.db.models.deletion import django.db.models.deletion
import ietf.utils.models import ietf.utils.models

View file

@ -1,10 +1,8 @@
# Copyright The IETF Trust 2018-2019, All Rights Reserved # Copyright The IETF Trust 2018-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.11 on 2018-04-01 12:31 # Generated by Django 1.11.11 on 2018-04-01 12:31
from __future__ import absolute_import, print_function, unicode_literals
from django.db import migrations, models from django.db import migrations, models

View file

@ -1,10 +1,8 @@
# Copyright The IETF Trust 2018-2019, All Rights Reserved # Copyright The IETF Trust 2018-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-05-03 11:50 # Generated by Django 1.11.13 on 2018-05-03 11:50
from __future__ import absolute_import, print_function, unicode_literals
from django.db import migrations from django.db import migrations
def forward(apps, schema_editor): def forward(apps, schema_editor):

View file

@ -1,10 +1,8 @@
# Copyright The IETF Trust 2018-2019, All Rights Reserved # Copyright The IETF Trust 2018-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-05-03 12:16 # Generated by Django 1.11.13 on 2018-05-03 12:16
from __future__ import absolute_import, print_function, unicode_literals
from django.db import migrations from django.db import migrations
def forward(apps, schema_editor): def forward(apps, schema_editor):

View file

@ -1,10 +1,8 @@
# Copyright The IETF Trust 2018-2019, All Rights Reserved # Copyright The IETF Trust 2018-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2018-10-03 06:39 # Generated by Django 1.11.15 on 2018-10-03 06:39
from __future__ import absolute_import, print_function, unicode_literals
from django.db import migrations, models from django.db import migrations, models

View file

@ -1,10 +1,8 @@
# Copyright The IETF Trust 2018-2019, All Rights Reserved # Copyright The IETF Trust 2018-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.16 on 2018-11-04 10:56 # Generated by Django 1.11.16 on 2018-11-04 10:56
from __future__ import absolute_import, print_function, unicode_literals
from tqdm import tqdm from tqdm import tqdm
from django.db import migrations from django.db import migrations

View file

@ -1,10 +1,8 @@
# Copyright The IETF Trust 2019, All Rights Reserved # Copyright The IETF Trust 2019-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.17 on 2018-12-28 13:11 # Generated by Django 1.11.17 on 2018-12-28 13:11
from __future__ import absolute_import, print_function, unicode_literals
from django.db import migrations, models from django.db import migrations, models

View file

@ -1,10 +1,8 @@
# Copyright The IETF Trust 2019, All Rights Reserved # Copyright The IETF Trust 2019-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.17 on 2018-12-28 13:33 # Generated by Django 1.11.17 on 2018-12-28 13:33
from __future__ import absolute_import, print_function, unicode_literals
from django.db import migrations from django.db import migrations
from django.db.models import F from django.db.models import F

View file

@ -1,10 +1,8 @@
# Copyright The IETF Trust 2019, All Rights Reserved # Copyright The IETF Trust 2019-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-02-25 13:02 # Generated by Django 1.11.20 on 2019-02-25 13:02
from __future__ import absolute_import, print_function, unicode_literals
from django.db import migrations, models from django.db import migrations, models

View file

@ -1,10 +1,8 @@
# Copyright The IETF Trust 2019, All Rights Reserved # Copyright The IETF Trust 2019-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.18 on 2019-01-11 11:22 # Generated by Django 1.11.18 on 2019-01-11 11:22
from __future__ import absolute_import, print_function, unicode_literals
from django.db import migrations, models from django.db import migrations, models
import django.db.models.deletion import django.db.models.deletion
import ietf.utils.models import ietf.utils.models

View file

@ -1,10 +1,8 @@
# Copyright The IETF Trust 2019, All Rights Reserved # Copyright The IETF Trust 2019-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-05-01 04:43 # Generated by Django 1.11.20 on 2019-05-01 04:43
from __future__ import absolute_import, print_function, unicode_literals
from django.db import migrations, models from django.db import migrations, models

View file

@ -1,10 +1,8 @@
# Copyright The IETF Trust 2019, All Rights Reserved # Copyright The IETF Trust 2019-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-05-08 08:41 # Generated by Django 1.11.20 on 2019-05-08 08:41
from __future__ import absolute_import, print_function, unicode_literals
from django.db import migrations, models from django.db import migrations, models

View file

@ -1,10 +1,8 @@
# Copyright The IETF Trust 2019, All Rights Reserved # Copyright The IETF Trust 2019-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-05-08 08:42 # Generated by Django 1.11.20 on 2019-05-08 08:42
from __future__ import absolute_import, print_function, unicode_literals
import sys import sys
from tqdm import tqdm from tqdm import tqdm

View file

@ -1,10 +1,8 @@
# Copyright The IETF Trust 2019, All Rights Reserved # Copyright The IETF Trust 2019-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-05-08 10:29 # Generated by Django 1.11.20 on 2019-05-08 10:29
from __future__ import absolute_import, print_function, unicode_literals
import django.core.validators import django.core.validators
from django.db import migrations, models from django.db import migrations, models
import django.db.models.deletion import django.db.models.deletion

View file

@ -1,10 +1,8 @@
# Copyright The IETF Trust 2019, All Rights Reserved # Copyright The IETF Trust 2019-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-05-28 12:42 # Generated by Django 1.11.20 on 2019-05-28 12:42
from __future__ import absolute_import, print_function, unicode_literals
import sys, time import sys, time
from django.db import migrations, models from django.db import migrations, models

View file

@ -3,9 +3,6 @@
# Generated by Django 1.11.20 on 2019-05-08 14:04 # Generated by Django 1.11.20 on 2019-05-08 14:04
from __future__ import absolute_import, print_function, unicode_literals
import sys import sys
from tqdm import tqdm from tqdm import tqdm

View file

@ -1,10 +1,8 @@
# Copyright The IETF Trust 2019, All Rights Reserved # Copyright The IETF Trust 2019-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-05-09 05:46 # Generated by Django 1.11.20 on 2019-05-09 05:46
from __future__ import absolute_import, print_function, unicode_literals
from django.db import migrations, models from django.db import migrations, models

View file

@ -1,10 +1,8 @@
# Copyright The IETF Trust 2019, All Rights Reserved # Copyright The IETF Trust 2019-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-05-20 09:53 # Generated by Django 1.11.20 on 2019-05-20 09:53
from __future__ import absolute_import, print_function, unicode_literals
from django.db import migrations, models from django.db import migrations, models
import django.db.models.deletion import django.db.models.deletion
import ietf.utils.models import ietf.utils.models

View file

@ -1,10 +1,8 @@
# Copyright The IETF Trust 2019, All Rights Reserved # Copyright The IETF Trust 2019-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-05-21 05:31 # Generated by Django 1.11.20 on 2019-05-21 05:31
from __future__ import absolute_import, print_function, unicode_literals
from django.db import migrations, models from django.db import migrations, models

View file

@ -1,10 +1,8 @@
# Copyright The IETF Trust 2019, All Rights Reserved # Copyright The IETF Trust 2019-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-05-21 05:31 # Generated by Django 1.11.20 on 2019-05-21 05:31
from __future__ import absolute_import, print_function, unicode_literals
import sys, time import sys, time
from django.db import migrations from django.db import migrations

View file

@ -1,10 +1,8 @@
# Copyright The IETF Trust 2019, All Rights Reserved # Copyright The IETF Trust 2019-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-05-30 03:36 # Generated by Django 1.11.20 on 2019-05-30 03:36
from __future__ import absolute_import, print_function, unicode_literals
from django.db import migrations from django.db import migrations

View file

@ -1,10 +1,8 @@
# Copyright The IETF Trust 2019, All Rights Reserved # Copyright The IETF Trust 2019-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-06-10 03:47 # Generated by Django 1.11.20 on 2019-06-10 03:47
from __future__ import absolute_import, print_function, unicode_literals
from django.db import migrations, models from django.db import migrations, models
import django.db.models.deletion import django.db.models.deletion
import ietf.utils.models import ietf.utils.models

View file

@ -1,10 +1,8 @@
# Copyright The IETF Trust 2019, All Rights Reserved # Copyright The IETF Trust 2019-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-06-10 04:36 # Generated by Django 1.11.20 on 2019-06-10 04:36
from __future__ import absolute_import, print_function, unicode_literals
import sys import sys
from tqdm import tqdm from tqdm import tqdm

View file

@ -1,7 +1,7 @@
# Copyright The IETF Trust 2019, All Rights Reserved # Copyright The IETF Trust 2019-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.23 on 2019-08-07 12:07 # Generated by Django 1.11.23 on 2019-08-07 12:07
from __future__ import unicode_literals
from django.db import migrations from django.db import migrations

View file

@ -1,7 +1,7 @@
# Copyright The IETF Trust 2019, All Rights Reserved # Copyright The IETF Trust 2019-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.23 on 2019-08-07 12:27 # Generated by Django 1.11.23 on 2019-08-07 12:27
from __future__ import unicode_literals
from django.db import migrations, models from django.db import migrations, models
import django.db.models.deletion import django.db.models.deletion

View file

@ -1,7 +1,6 @@
# Copyright The IETF Trust 2019, All Rights Reserved # Copyright The IETF Trust 2019-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
from django.db import migrations from django.db import migrations

View file

@ -1,7 +1,7 @@
# Copyright The IETF Trust 2019, All Rights Reserved # Copyright The IETF Trust 2019-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.22 on 2019-08-03 10:09 # Generated by Django 1.11.22 on 2019-08-03 10:09
from __future__ import unicode_literals
from django.db import migrations from django.db import migrations

View file

@ -1,7 +1,7 @@
# Copyright The IETF Trust 2019, All Rights Reserved # Copyright The IETF Trust 2019-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.25 on 2019-10-10 10:37 # Generated by Django 1.11.25 on 2019-10-10 10:37
from __future__ import unicode_literals
from django.db import migrations, models from django.db import migrations, models
import django.db.models.deletion import django.db.models.deletion

View file

@ -1,7 +1,7 @@
# Copyright The IETF Trust 2020, All Rights Reserved # Copyright The IETF Trust 2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Generated by Django 1.11.27 on 2020-01-17 11:54 # Generated by Django 1.11.27 on 2020-01-17 11:54
from __future__ import unicode_literals
from django.db import migrations, models from django.db import migrations, models

View file

@ -1,6 +1,6 @@
# Copyright The IETF Trust 2010-2020, All Rights Reserved # Copyright The IETF Trust 2010-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import datetime import datetime
import logging import logging

View file

@ -2,12 +2,9 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import bleach import bleach
import datetime import datetime
import re import re
import six
from email.utils import parseaddr from email.utils import parseaddr
@ -118,8 +115,10 @@ def make_one_per_line(value):
>>> make_one_per_line(None) >>> make_one_per_line(None)
""" """
if value and isinstance(value, (six.binary_type, six.text_type)): if value and isinstance(value, str):
return re.sub(", ?", "\n", value) return re.sub(", ?", "\n", value)
elif value and isinstance(value, bytes):
log.assertion('isinstance(value, str)')
else: else:
return value return value

View file

@ -1,9 +1,7 @@
# Copyright The IETF Trust 2016-2019, All Rights Reserved # Copyright The IETF Trust 2016-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
from django import template from django import template
import debug # pyflakes:ignore import debug # pyflakes:ignore

View file

@ -2,8 +2,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import os import os
import shutil import shutil
import datetime import datetime
@ -17,7 +15,7 @@ if sys.version_info[0] == 2 and sys.version_info[1] < 7:
else: else:
import unittest import unittest
from six.moves.http_cookies import SimpleCookie from http.cookies import SimpleCookie
from pyquery import PyQuery from pyquery import PyQuery
from urllib.parse import urlparse, parse_qs from urllib.parse import urlparse, parse_qs
from tempfile import NamedTemporaryFile from tempfile import NamedTemporaryFile

View file

@ -2,8 +2,6 @@
# Copyright The IETF Trust 2011-2020, All Rights Reserved # Copyright The IETF Trust 2011-2020, All Rights Reserved
from __future__ import absolute_import, print_function, unicode_literals
import datetime import datetime
import io import io
import os import os

View file

@ -1,9 +1,7 @@
# Copyright The IETF Trust 2012-2019, All Rights Reserved # Copyright The IETF Trust 2012-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import io import io
import os import os
import shutil import shutil

View file

@ -1,10 +1,7 @@
# Copyright The IETF Trust 2017-2019, All Rights Reserved # Copyright The IETF Trust 2017-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
from django.urls import reverse as urlreverse from django.urls import reverse as urlreverse
from pyquery import PyQuery from pyquery import PyQuery

View file

@ -2,8 +2,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import os import os
import shutil import shutil
import datetime import datetime

View file

@ -1,9 +1,7 @@
# Copyright The IETF Trust 2014-2019, All Rights Reserved # Copyright The IETF Trust 2014-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import os import os
import shutil import shutil
import datetime import datetime

View file

@ -1,9 +1,7 @@
# Copyright The IETF Trust 2016-2019, All Rights Reserved # Copyright The IETF Trust 2016-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import datetime, os, shutil import datetime, os, shutil
import io import io
import tarfile, tempfile, mailbox import tarfile, tempfile, mailbox

View file

@ -1,9 +1,7 @@
# Copyright The IETF Trust 2013-2019, All Rights Reserved # Copyright The IETF Trust 2013-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import io import io
import os import os
import shutil import shutil

View file

@ -1,4 +1,4 @@
# Copyright The IETF Trust 2009-2019, All Rights Reserved # Copyright The IETF Trust 2009-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). # Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
# All rights reserved. Contact: Pasi Eronen <pasi.eronen@nokia.com> # All rights reserved. Contact: Pasi Eronen <pasi.eronen@nokia.com>
@ -33,8 +33,6 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
from __future__ import absolute_import, print_function, unicode_literals
from django.conf.urls import include from django.conf.urls import include
from django.views.generic import RedirectView from django.views.generic import RedirectView
from django.conf import settings from django.conf import settings

View file

@ -1,9 +1,7 @@
# Copyright The IETF Trust 2012-2019, All Rights Reserved # Copyright The IETF Trust 2012-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
from ietf.doc import views_conflict_review, views_doc from ietf.doc import views_conflict_review, views_doc
from ietf.utils.urls import url from ietf.utils.urls import url

View file

@ -2,8 +2,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import datetime import datetime
import hashlib import hashlib
import io import io

View file

@ -1,9 +1,7 @@
# Copyright The IETF Trust 2011-2019, All Rights Reserved # Copyright The IETF Trust 2011-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import datetime import datetime
import io import io
import os import os

View file

@ -1,9 +1,7 @@
# Copyright The IETF Trust 2016-2019, All Rights Reserved # Copyright The IETF Trust 2016-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import datetime import datetime
import debug # pyflakes:ignore import debug # pyflakes:ignore

View file

@ -4,8 +4,6 @@
# Directors and Secretariat # Directors and Secretariat
from __future__ import absolute_import, print_function, unicode_literals
import datetime, json import datetime, json
from django import forms from django import forms

View file

@ -2,8 +2,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import datetime import datetime
import io import io
import json import json

View file

@ -1,9 +1,7 @@
# Copyright The IETF Trust 2012-2019, All Rights Reserved # Copyright The IETF Trust 2012-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
import datetime import datetime
import io import io
import os import os

View file

@ -34,8 +34,6 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
from __future__ import absolute_import, print_function, unicode_literals
import datetime import datetime
import glob import glob
import io import io

View file

@ -1,10 +1,7 @@
# Copyright The IETF Trust 2017-2019, All Rights Reserved # Copyright The IETF Trust 2017-2020, All Rights Reserved
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
from django.urls import reverse as urlreverse from django.urls import reverse as urlreverse
from django.http import HttpResponseRedirect from django.http import HttpResponseRedirect
from django.shortcuts import render from django.shortcuts import render

View file

@ -2,8 +2,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import absolute_import, print_function, unicode_literals
# changing state and metadata on Internet Drafts # changing state and metadata on Internet Drafts
import datetime import datetime

Some files were not shown because too many files have changed in this diff Show more