Skip to content

Commit 8dae244

Browse files
author
Zaytsev Dmitriy
committed
removed unused imports
1 parent 6f67e2f commit 8dae244

25 files changed

Lines changed: 12 additions & 29 deletions

File tree

projects/Convert_JPEG_to_PNG/converter_GUI.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import tkinter as tk
2-
from tkinter import filedialog, messagebox
2+
from tkinter import filedialog
33
from PIL import Image
44
root = tk.Tk() # Tkinter window initialized
55
root.title('Converter') # Title of the window

projects/Convert_numbers_to_word/converter.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import math
21

32
one_digit_words = {
43
'0': ["zero"],
@@ -80,5 +79,5 @@ def converter(n):
8079
break
8180
int(n)
8281
print(n, "-->", converter(n))
83-
except ValueError as e:
82+
except ValueError:
8483
print("Error: Invalid Number!")

projects/Create_a_simple_stopwatch/stopwatch.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import tkinter as Tkinter
22
from datetime import datetime
3-
import time
43
counter = 0
54
running = False
65

projects/Dns_record/dns_record.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#Simple program to fetch dns record of a given website
22

3-
import json
43
import dns.resolver
54

65
#Dictionary to store the dns record of a website

projects/Fetch HTTP status code/fetch_http_status_code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#Program to fetch the http status code give the url/api
2-
from urllib.request import Request, urlopen
2+
from urllib.request import urlopen
33
from urllib.error import URLError, HTTPError
44
import emoji
55

-43.8 KB
Loading
-53.6 KB
Loading
-9.76 KB
Loading
-7.9 KB
Loading
-22 KB
Loading

0 commit comments

Comments
 (0)