[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
- Previous message: [yum-cvs] yum/yum comps.py, 1.10, 1.11 config.py, 1.105, 1.106 logginglevels.py, 1.6, 1.7 misc.py, 1.19, 1.20 packages.py, 1.77, 1.78 repos.py, 1.101, 1.102 sqlitesack.py, 1.47, 1.48 storagefactory.py, 1.3, 1.4 yumRepo.py, 1.25, 1.26
- Next message: [yum-cvs] yum/yum misc.py,1.19.2.1,1.19.2.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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)
- Previous message: [yum-cvs] yum/yum comps.py, 1.10, 1.11 config.py, 1.105, 1.106 logginglevels.py, 1.6, 1.7 misc.py, 1.19, 1.20 packages.py, 1.77, 1.78 repos.py, 1.101, 1.102 sqlitesack.py, 1.47, 1.48 storagefactory.py, 1.3, 1.4 yumRepo.py, 1.25, 1.26
- Next message: [yum-cvs] yum/yum misc.py,1.19.2.1,1.19.2.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Yum-cvs-commits
mailing list