Merge pull request #9255 from dtrodrigues/python3-multidigit
python: allow multi-digit minor versions
This commit is contained in:
		
						commit
						69074eaa1f
					
				@ -7,7 +7,7 @@ module Language
 | 
				
			|||||||
  # @api public
 | 
					  # @api public
 | 
				
			||||||
  module Python
 | 
					  module Python
 | 
				
			||||||
    def self.major_minor_version(python)
 | 
					    def self.major_minor_version(python)
 | 
				
			||||||
      version = /\d\.\d/.match `#{python} --version 2>&1`
 | 
					      version = /\d\.\d+/.match `#{python} --version 2>&1`
 | 
				
			||||||
      return unless version
 | 
					      return unless version
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      Version.create(version.to_s)
 | 
					      Version.create(version.to_s)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user