parameters: ()
return_statement: return '{}.{}.{}'.format(x, y, z)
docstring: Return current QGIS version number as X.Y.Z for testing plugin compatibility.
          If Y = 99, bump up to (X+1.0.0), so e.g. 2.99 becomes 3.0.0
          This way QGIS X.99 is only compatible with plugins for the upcoming major release.
docstring_summary: Return current QGIS version number as X.Y.Z for testing plugin compatibility.
          If Y = 99, bump up to (X+1.0.0), so e.g. 2.99 becomes 3.0.0
          This way QGIS X.99 is only compatible with plugins for the upcoming major release.
docstring_tokens: Return current QGIS version number as X . Y . Z for testing plugin compatibility . If Y = 99 bump up to ( X + 1 . 0 . 0 ) so e . g . 2 . 99 becomes 3 . 0 . 0 This way QGIS X . 99 is only compatible with plugins for the upcoming major release .
function: def pyQgisVersion():
      """ Return current QGIS version number as X.Y.Z for testing plugin compatibility.
          If Y = 99, bump up to (X+1.0.0), so e.g. 2.99 becomes 3.0.0
          This way QGIS X.99 is only compatible with plugins for the upcoming major release.
      """
      x, y, z = re.findall(r'^(\d*).(\d*).(\d*)', Qgis.QGIS_VERSION)[0]
      if y == '99':
          x = str(int(x) + 1)
          y = z = '0'
      return '{}.{}.{}'.format(x, y, z)
function_tokens: def pyQgisVersion ( ) : x , y , z = re . findall ( r'^(\d*).(\d*).(\d*)' , Qgis . QGIS_VERSION ) [ 0 ] if y == '99' : x = str ( int ( x ) + 1 ) y = z = '0' return '{}.{}.{}' . format ( x , y , z )