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
47e59872
Kaydet (Commit)
47e59872
authored
Mar 11, 2003
tarafından
Jack Jansen
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Patch by Andrew Straw: use urllib2 so proxie access works.
üst
f9e0bd8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
pimp.py
Lib/plat-mac/pimp.py
+3
-8
No files found.
Lib/plat-mac/pimp.py
Dosyayı görüntüle @
47e59872
...
...
@@ -15,6 +15,7 @@ intention is that the end user will use this through a GUI.
import
sys
import
os
import
urllib
import
urllib2
import
urlparse
import
plistlib
import
distutils.util
...
...
@@ -49,11 +50,6 @@ ARCHIVE_FORMATS = [
(
".zip"
,
"unzip
\"
%
s
\"
"
),
]
class
MyURLopener
(
urllib
.
FancyURLopener
):
"""Like FancyURLOpener, but we do want to get errors as exceptions."""
def
http_error_default
(
self
,
url
,
fp
,
errcode
,
errmsg
,
headers
):
urllib
.
URLopener
.
http_error_default
(
self
,
url
,
fp
,
errcode
,
errmsg
,
headers
)
class
PimpPreferences
:
"""Container for per-user preferences, such as the database to use
and where to install packages."""
...
...
@@ -149,7 +145,7 @@ class PimpDatabase:
if
url
in
self
.
_urllist
:
return
self
.
_urllist
.
append
(
url
)
fp
=
MyURLopener
()
.
open
(
url
)
.
fp
fp
=
urllib2
.
url
open
(
url
)
.
fp
dict
=
plistlib
.
Plist
.
fromFile
(
fp
)
# Test here for Pimp version, etc
if
not
included
:
...
...
@@ -798,4 +794,4 @@ def main():
if
__name__
==
'__main__'
:
main
()
\ No newline at end of file
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