/[packages]/backports/4/python-mglob/pristine/SOURCES/mglob-0.4-built-in-set.patch
ViewVC logotype

Contents of /backports/4/python-mglob/pristine/SOURCES/mglob-0.4-built-in-set.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 638770 - (show annotations) (download)
Sun Jun 22 23:56:36 2014 UTC (9 years, 9 months ago) by joequant
File size: 375 byte(s)
backport python-mglob
1 --- mglob.py.orig 2012-01-27 03:23:12.760751705 +0100
2 +++ mglob.py 2012-01-27 03:23:51.565854475 +0100
3 @@ -69,7 +69,11 @@
4
5
6 import os,glob,fnmatch,sys
7 -from sets import Set as set
8 +try:
9 + from sets import Set as set
10 +except ImportError:
11 + # we are likely running with python3, where set is built-in
12 + pass
13
14
15 def expand(flist,exp_dirs = False):

  ViewVC Help
Powered by ViewVC 1.1.30