python 去utf-8 bom

#!/usr/bin/python
#-*- coding: utf-8 -*-
import os
import codecs
import time

from sys import *

__trim_ext_array__ = (“php”, “js”)

def trimBom(filename):