From 4ba7cab7637b7eb1dc09b3db6179633d8cbb9ad0 Mon Sep 17 00:00:00 2001 From: adithyagenie Date: Fri, 4 Nov 2022 16:55:22 +0530 Subject: [PATCH] Sorted imports --- maze/modules/PlayerBase_func.py | 15 +++++++++------ maze/modules/__init__.py | 3 ++- maze/modules/maze.py | 12 +++++++----- maze/modules/maze_saveandload.py | 6 ++++-- maze/modules/password_forget.py | 2 +- 5 files changed, 23 insertions(+), 15 deletions(-) diff --git a/maze/modules/PlayerBase_func.py b/maze/modules/PlayerBase_func.py index 7bbce1e..30b8442 100644 --- a/maze/modules/PlayerBase_func.py +++ b/maze/modules/PlayerBase_func.py @@ -1,13 +1,16 @@ -import mysql.connector -import os -import re import curses -import maze.modules.maze -from .password_forget import sender +import os import random +import re import string -from time import sleep from base64 import b64decode, b64encode +from time import sleep + +import mysql.connector + +import maze.modules.maze + +from .password_forget import sender loggedin = False U = gamerid = None diff --git a/maze/modules/__init__.py b/maze/modules/__init__.py index 483d4f7..eb35b5a 100644 --- a/maze/modules/__init__.py +++ b/maze/modules/__init__.py @@ -1,6 +1,7 @@ -from maze.modules.maze import main import curses +from maze.modules.maze import main + def bruh(): curses.wrapper(main) diff --git a/maze/modules/maze.py b/maze/modules/maze.py index a337740..8fc7844 100644 --- a/maze/modules/maze.py +++ b/maze/modules/maze.py @@ -1,13 +1,15 @@ import curses -import time -from math import exp, pi, cos, fabs import random +import sys +import time from collections import defaultdict from itertools import tee -import maze.modules.PlayerBase_func as database -from .about import about +from math import cos, exp, fabs, pi + import maze.modules.maze_saveandload as sl -import sys +import maze.modules.PlayerBase_func as database + +from .about import about WON = 0 PAUSED = False diff --git a/maze/modules/maze_saveandload.py b/maze/modules/maze_saveandload.py index 42b5035..7d90544 100644 --- a/maze/modules/maze_saveandload.py +++ b/maze/modules/maze_saveandload.py @@ -1,9 +1,11 @@ import os import pickle -from .PlayerBase_func import Input, screenwipe -import maze.modules.maze as m from time import sleep +import maze.modules.maze as m + +from .PlayerBase_func import Input, screenwipe + def save(screen, maze, coords): y, x = screen.getmaxyx() diff --git a/maze/modules/password_forget.py b/maze/modules/password_forget.py index b27620a..04e5b24 100644 --- a/maze/modules/password_forget.py +++ b/maze/modules/password_forget.py @@ -1,7 +1,7 @@ +import pickle import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText -import pickle from random import choice