Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on May 25, 2022. It is now read-only.

Commit d4f37c5

Browse files
Merge pull request #366 from dzaytsev91/removed-useless-imports
removed unused imports
2 parents 6f67e2f + 8dae244 commit d4f37c5

File tree

25 files changed

+12
-29
lines changed

25 files changed

+12
-29
lines changed

‎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 ValueErrorase:
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)

AltStyle によって変換されたページ (->オリジナル) /