Skip to content

Commit 6e88e56

Browse files
generatedunixname89002005287564facebook-github-bot
authored andcommitted
aibench
Reviewed By: itamaro Differential Revision: D69297250 fbshipit-source-id: 111e6f30008f6ed6e361213491ca84bacf11ac4c
1 parent 068f27e commit 6e88e56

File tree

135 files changed

+308
-506
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+308
-506
lines changed

ailab/ailab/settings_base.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
https://docs.djangoproject.com/en/1.11/ref/settings/
1111
"""
1212

13-
from __future__ import absolute_import, division, print_function, unicode_literals
14-
1513
import os
1614

1715
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
@@ -30,7 +28,7 @@
3028

3129
secret_key = get_random_secret_key()
3230
with open(SETTINGS_DIR + os.path.sep + "secret_key.py", "w") as f:
33-
f.write('SECRET_KEY = "{}"'.format(secret_key))
31+
f.write(f'SECRET_KEY = "{secret_key}"')
3432
from .secret_key import SECRET_KEY
3533

3634
# SECURITY WARNING: don't run with debug turned on in production!

ailab/ailab/urls.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
1515
"""
1616

17-
from __future__ import absolute_import, division, print_function, unicode_literals
18-
1917
from django.conf import settings
2018
from django.conf.urls import include, url
2119
from django.conf.urls.static import static

ailab/ailab/views.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import absolute_import, division, print_function, unicode_literals
2-
31
from django.shortcuts import redirect
42

53

ailab/ailab/wsgi.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
88
"""
99

10-
from __future__ import absolute_import, division, print_function, unicode_literals
11-
1210
import os
1311

1412
from django.core.wsgi import get_wsgi_application

ailab/benchmark/admin.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
from __future__ import unicode_literals
3-
41
from benchmark.models import BenchmarkInfo, Device
52
from django.contrib import admin
63

ailab/benchmark/apps.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
from __future__ import unicode_literals
3-
41
from django.apps import AppConfig
52

63

ailab/benchmark/benchmark_result_controller.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import absolute_import, division, print_function, unicode_literals
2-
31
import json
42

53
from .models import BenchmarkResult

ailab/benchmark/db_controller.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import absolute_import, division, print_function, unicode_literals
2-
31
from benchmark.models import BenchmarkInfo, Device
42
from django.utils import timezone
53

@@ -27,7 +25,7 @@ def get_payload(req):
2725

2826
ids = []
2927
if ids_str is None and (action == "run" or action == "release"):
30-
raise AssertionError("ids must be specified for {}".format(action))
28+
raise AssertionError(f"ids must be specified for {action}")
3129
elif ids_str is not None:
3230
ids = ids_str.split(",")
3331

@@ -165,4 +163,4 @@ def get_payload(req):
165163
return {"status": "success"}
166164

167165
else:
168-
raise AssertionError("action {} not recognized".format(action))
166+
raise AssertionError(f"action {action} not recognized")

ailab/benchmark/models.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
from __future__ import unicode_literals
3-
41
from django.db import models
52

63

ailab/benchmark/result_table.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import absolute_import, division, print_function, unicode_literals
2-
31
from datetime import datetime
42

53
import django_tables2 as tables

0 commit comments

Comments
 (0)