Python hatası yüzünden yapmak zorunda olduğumuz karşılaştırma

"salaklığını" kod içerisinde belirttik ki bizi "salak" sanmasınlar, di
mi? Di...
This commit is contained in:
Barış Metin
2005-06-15 17:28:22 +00:00
parent b3981f8aa4
commit 1fb9a9f88c
+5
View File
@@ -67,6 +67,11 @@ class ArchiveZip(ArchiveBase):
os.mkdir(ofile)
continue
info = zip.getinfo(file)
# O.K. we know following line is dull. What we wanted to
# do was to compare the equality to 0xa0000000. But there
# is a known problem in Python regarding the hex/oct
# constants. Please see Guido's explanation at
# http://mail.python.org/pipermail/python-dev/2003-February/033029.html
if hex(info.external_attr)[2] == 'A':
target = zip.read(file)
os.symlink(target, ofile)