Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
90136b08
Kaydet (Commit)
90136b08
authored
Ara 04, 1997
tarafından
Barry Warsaw
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Only parsing requires Python 1.5
üst
00727b00
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
world
Tools/world/world
+7
-6
No files found.
Tools/world/world
Dosyayı görüntüle @
90136b08
#! /usr/bin/env python
1.5
#! /usr/bin/env python
"""Print the long name of an Internet domain.
"""Print the long name of an Internet domain.
...
@@ -51,11 +51,6 @@ __source__ = '<url:http://www.python.org/~bwarsaw/pyware/>'
...
@@ -51,11 +51,6 @@ __source__ = '<url:http://www.python.org/~bwarsaw/pyware/>'
import
sys
import
sys
import
string
import
string
import
getopt
import
getopt
try:
import re
except ImportError:
print 'Python 1.5 is required!'
sys.exit(1)
...
@@ -80,6 +75,12 @@ def resolve(rawaddr):
...
@@ -80,6 +75,12 @@ def resolve(rawaddr):
def
parse
(
file
,
normalize
):
def
parse
(
file
,
normalize
):
try
:
import
re
except
ImportError
:
print
'Parsing requires Python 1.5'
sys
.
exit
(
1
)
try
:
try
:
fp
=
open
(
file
)
fp
=
open
(
file
)
except
IOError
,
(
err
,
msg
):
except
IOError
,
(
err
,
msg
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment