Chris McDonough
2012-01-19 520676451b8b89177ad95cfcaa3f90484f5a6a18
Merge branch 'master' into 1.3-branch
1 files modified
5 ■■■■■ changed files
pyramid/fixers/fix_bfg_imports.py 5 ●●●●● patch | view | raw | blame | history
pyramid/fixers/fix_bfg_imports.py
@@ -190,7 +190,9 @@
        for file in files:
            if file.endswith('.zcml'):
                absfile = os.path.join(root, file)
                text = open(absfile, 'rb').read()
                f = open(absfile, 'rb')
                text = f.read()
                f.close()
                newt = NS.sub('xmlns="http://pylonshq.com/pyramid"', text)
                newt = INCLUDE_ATTR.sub('pyramid_zcml', newt)
                newt = ATTR.sub(replace, newt)
@@ -199,7 +201,6 @@
                    newf.write(newt)
                    newf.flush()
                    newf.close()
                text.close()
                
        for dir in dirs:
            if dir.startswith('.'):