[yum-cvs] yum/yum misc.py,1.20,1.21

Jeremy Katz katzj at linux.duke.edu
Wed Oct 25 19:13:22 UTC 2006


Update of /home/groups/yum/cvs/yum/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv20086/yum

Modified Files:
	misc.py 
Log Message:
file can be a unicode string also


Index: misc.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/misc.py,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- misc.py	25 Oct 2006 06:08:31 -0000	1.20
+++ misc.py	25 Oct 2006 19:13:20 -0000	1.21
@@ -96,7 +96,7 @@
        
     # chunking brazenly lifted from Ryan Tomayko
     try:
-        if type(file) is not types.StringType:
+        if type(file) not in types.StringTypes:
             fo = file # assume it's a file-like-object
         else:           
             fo = open(file, 'r', CHUNK)




More information about the Yum-cvs-commits mailing list