2.4'den düşük sürümlerdeki import sorununu çözüyor.

This commit is contained in:
Barış Metin
2005-07-28 23:28:13 +00:00
parent fe482244fc
commit 180dfeaa97
2 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
# for python 2.3 compatibility
import sys
ver = sys.version_info
if ver[0] == 2 and ver[1] == 4:
if ver[0] <= 2 and ver[1] < 4:
from sets import Set as set
class CycleError:
+6 -1
View File
@@ -1,7 +1,11 @@
# top level PISI interfaces
# a facade to the entire PISI system
import os, sys
import os
import sys
ver = sys.version_info
if ver[0] <= 2 and ver[1] < 4:
from sets import Set as set
from config import config
from constants import const
@@ -21,6 +25,7 @@ def install(packages):
def install_pkg_files(packages):
"""install a number of pisi package files"""
from package import Package
# read the package information into memory first
# regardless of which distribution they come from