Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cpu: Optimizing the Method of Obtaining CPU Version Information
1.By using the get() method to obtain matching patterns, it avoids using try exception to capture KeyError exceptions. 2.Immediately return the result after finding the version number to avoid unnecessary iteration. 3.Use an empty string as the default return result to avoid returning None Signed-off-by: ut003460 <[email protected]>
- Loading branch information