From f44c247784ca524f9da861c9b264f0fdc5255629 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Thu, 11 Oct 2018 17:32:19 +0200 Subject: Remove unused imports --- kpov_judge/tasks/copy_rename_20_files_tail_env/solution/solution.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kpov_judge/tasks/copy_rename_20_files_tail_env') diff --git a/kpov_judge/tasks/copy_rename_20_files_tail_env/solution/solution.py b/kpov_judge/tasks/copy_rename_20_files_tail_env/solution/solution.py index 6036cd1..f661c4d 100644 --- a/kpov_judge/tasks/copy_rename_20_files_tail_env/solution/solution.py +++ b/kpov_judge/tasks/copy_rename_20_files_tail_env/solution/solution.py @@ -65,7 +65,7 @@ def env(): # S pomočjo programa cURL shrani vsebino spletne strani www.google.com v datoteko z imenom website.txt def googl(): - import urllib.request, urllib.error, urllib.parse + import urllib.request open('website.txt', 'w').write(urllib.request.urlopen('http://www.google.com').read()) # Napiši ukaz, ki bo število pojavitev značke
v datoteki website.txt dodal na konec te iste datoteke brez, da bi se ukaz zapisal v zgodovino ukazov "bash history" -- cgit v1.2.1