def changes():
 _version = version()
 with io.open(os.path.join(get_base_dir(), 'CHANGES.txt'), 'r', encoding='utf8') as f:
  lines = []
  for line in f:
   if line.startswith('====='):
    if (len(lines) > 1):
     break
   if lines:
    lines.append(line)
   elif line.startswith(_version):
    lines.append(line)
 return ''.join(lines[:(-1)])

def changes ( ) : _version = version ( ) with io . open ( os . path . join ( get_base_dir ( ) , 'CHANGES.txt' ) , 'r' , encoding = 'utf8' ) as f : lines = [ ] for line in f : if line . startswith ( '=====' ) : if ( len ( lines ) > 1 ) : break if lines : lines . append ( line ) elif line . startswith ( _version ) : lines . append ( line ) return '' . join ( lines [ : ( - 1 ) ] )
extract part of changelog pertaining to version .