Skip to content

Commit

Permalink
isort and black
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky committed Aug 7, 2024
1 parent 2940b44 commit 9660ec8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
19 changes: 11 additions & 8 deletions mathics_django/server.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-


import sys
import argparse
import errno
import os
import os.path as osp
import argparse
import socket
import errno
import subprocess
import sys

import mathics
from mathics_django import server_version_string, license_string
from mathics_django import settings as mathics_settings # Prevents UnboundLocalError
from mathics_django.version import __version__ as django_frontend_version
from mathics.settings import DATA_DIR

from mathics_django import ( # Prevents UnboundLocalError
license_string,
server_version_string,
settings as mathics_settings,
)
from mathics_django.version import __version__ as django_frontend_version


def check_database():
# Check for the database
Expand Down Expand Up @@ -107,7 +110,7 @@ def launch_app(args):
addr = "127.0.0.1"

try:
from django.core.servers.basehttp import run, get_internal_wsgi_application
from django.core.servers.basehttp import get_internal_wsgi_application, run

handler = get_internal_wsgi_application()
run(addr, port, handler)
Expand Down
4 changes: 2 additions & 2 deletions mathics_django/urls.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# -*- coding: utf-8 -*-


from django.urls import re_path, include
from django.conf.urls.static import static
from django.conf import settings
from django.conf.urls.static import static
from django.urls import include, re_path

handler404 = "mathics_django.web.views.error_404_view"
handler500 = "mathics_django.web.views.error_500_view"
Expand Down
1 change: 0 additions & 1 deletion mathics_django/web/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
doc_subsection,
)


# These are the callback functions.
from mathics_django.web.views import (
delete,
Expand Down

0 comments on commit 9660ec8

Please sign in to comment.