View | Details | Raw Unified | Return to bug 18826
Collapse All | Expand All

(-)python.req.py (-1 / +1 lines)
Lines 177-183 Link Here
177
        for src in files :
177
        for src in files :
178
            ext = os.path.splitext(basename(src))[1]
178
            ext = os.path.splitext(basename(src))[1]
179
            if ext not in ['.so','.pyc','.pyo','.pth'] :
179
            if ext not in ['.so','.pyc','.pyo','.pth'] :
180
                lines = [ line.rstrip().replace('\r','') for line in open(src).readlines() ]
180
                lines = [ line.rstrip().replace('\r','') for line in open(src).readlines() if not line.startswith('#')]
181
                encmod = None
181
                encmod = None
182
                if len(lines) > 0 :
182
                if len(lines) > 0 :
183
                    encmod = need_encoding_module(lines[0])
183
                    encmod = need_encoding_module(lines[0])

Return to bug 18826