parameters: (self, file)
docstring: Updates properties from a file name or file-like object.
  
          Ignores empty lines and comment lines.
docstring_summary: Updates properties from a file name or file-like object.
docstring_tokens: Updates properties from a file name or file - like object .
function: def update(self, file):
          '''Updates properties from a file name or file-like object.
  
          Ignores empty lines and comment lines.'''
  
          if isinstance(file, str_type):
              f = codecs.open(file, 'r', 'utf-8')
          else:
              f = file
  
          for l in f.readlines():
              line = l.strip()
              if not line or line.startswith('#'):
                  continue
              (k, v) = re.split('\s*=\s*', line, 1)
              self._properties[k] = v
function_tokens: def update ( self , file ) : if isinstance ( file , str_type ) : f = codecs . open ( file , 'r' , 'utf-8' ) else : f = file for l in f . readlines ( ) : line = l . strip ( ) if not line or line . startswith ( '#' ) : continue ( k , v ) = re . split ( '\s*=\s*' , line , 1 ) self . _properties [ k ] = v