def versionstring(build=True, extra=True):
 if build:
  first = 3
 else:
  first = 2
 s = '.'.join((str(n) for n in __version__[:first]))
 if (build and extra):
  s += ''.join((str(n) for n in __version__[3:]))
 return s

def versionstring ( build = True , extra = True ) : if build : first = 3 else : first = 2 s = '.' . join ( ( str ( n ) for n in __version__ [ : first ] ) ) if ( build and extra ) : s += '' . join ( ( str ( n ) for n in __version__ [ 3 : ] ) ) return s
returns the version number of whoosh as a string .