Skip to content

Commit 28a1dd0

Browse files
replaced webapp api and snakesay with external packages
1 parent e4b7619 commit 28a1dd0

33 files changed

+42
-848
lines changed

cli/django.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#!/usr/bin/python3
22

33
import typer
4+
from snakesay import snakesay
45

56
from pythonanywhere.django_project import DjangoProject
6-
from pythonanywhere.snakesay import snakesay
77
from pythonanywhere.utils import ensure_domain
88

99
app = typer.Typer(no_args_is_help=True)

cli/schedule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
from typing import List
55

66
import typer
7+
from snakesay import snakesay
78
from tabulate import tabulate
89

910
from pythonanywhere.scripts_commons import get_logger, get_task_from_id, tabulate_formats
10-
from pythonanywhere.snakesay import snakesay
1111
from pythonanywhere.task import Task, TaskList
1212

1313
app = typer.Typer(no_args_is_help=True)

cli/webapp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
from pathlib import Path
55

66
import typer
7+
from pythonanywhere_core.webapp import Webapp
8+
from snakesay import snakesay
79

8-
from pythonanywhere.api.webapp import Webapp
910
from pythonanywhere.project import Project
10-
from pythonanywhere.snakesay import snakesay
1111
from pythonanywhere.utils import ensure_domain
1212

1313
app = typer.Typer(no_args_is_help=True)

pythonanywhere/api/webapp.py

Lines changed: 0 additions & 185 deletions
This file was deleted.

pythonanywhere/api/webapp.pyi

Lines changed: 0 additions & 15 deletions
This file was deleted.

pythonanywhere/django_project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
import subprocess
55

66
from packaging import version
7+
from snakesay import snakesay
78

89
from pythonanywhere.exceptions import SanityException
9-
from pythonanywhere.snakesay import snakesay
1010
from .project import Project
1111

1212

pythonanywhere/files.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
import logging
77
from urllib.parse import urljoin
88

9+
from snakesay import snakesay
10+
911
from pythonanywhere.api.files_api import Files
10-
from pythonanywhere.snakesay import snakesay
1112

1213
logger = logging.getLogger("pythonanywhere")
1314

pythonanywhere/project.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
from pathlib import Path
22
import uuid
33

4-
from pythonanywhere.api.webapp import Webapp
4+
from pythonanywhere_core.webapp import Webapp
5+
from snakesay import snakesay
6+
57
from pythonanywhere.exceptions import SanityException
68
from pythonanywhere.virtualenvs import Virtualenv
79
from pythonanywhere.launch_bash_in_virtualenv import launch_bash_in_virtualenv
8-
from pythonanywhere.snakesay import snakesay
910

1011

1112
class Project:

pythonanywhere/project.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from pathlib import Path
22

3-
from pythonanywhere.api.webapp import Webapp
3+
from pythonanywhere_core.webapp import Webapp
4+
45
from pythonanywhere.virtualenvs import Virtualenv
56

67
class Project:

pythonanywhere/scripts_commons.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
import sys
55

66
from schema import And, Or, Schema, SchemaError, Use
7+
from snakesay import snakesay
78

8-
from pythonanywhere.snakesay import snakesay
99
from pythonanywhere.task import Task
1010

1111
logger = logging.getLogger(__name__)

0 commit comments

Comments
 (0)