Touch up
This commit is contained in:
parent
66129311f4
commit
b947605ab7
|
@ -193,7 +193,7 @@ static bool pmic_init(void) {
|
|||
}
|
||||
|
||||
// Reg: 12h
|
||||
// Enable EXTENT, DCDC1, LDO2 and LDO3
|
||||
// Enable CTRL_EXTEN, DCDC1, LDO2 and LDO3
|
||||
write_buf[0] = AXP192_DCDC13_LDO23_CTRL;
|
||||
write_buf[1] = AXP192_DCDC13_LDO23_CTRL_EXTEN |
|
||||
AXP192_DCDC13_LDO23_CTRL_LDO3 |
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# to test arbitrarily precision integers
|
||||
# to test arbitrary precision integers
|
||||
|
||||
x = 1000000000000000000000000000000
|
||||
xn = -1000000000000000000000000000000
|
||||
|
|
|
@ -30,7 +30,7 @@ def f():
|
|||
return (i, j)
|
||||
print(f())
|
||||
|
||||
# multiple for loops within nested with(s)
|
||||
# multiple for loops within nested with statements
|
||||
def f():
|
||||
with CtxMgr(1):
|
||||
for i in [1, 2]:
|
||||
|
@ -41,7 +41,7 @@ def f():
|
|||
return (i, j, k, l)
|
||||
print(f())
|
||||
|
||||
# multiple for loops that are optimised, and nested with(s)
|
||||
# multiple for loops that are optimised, and nested with statements
|
||||
def f():
|
||||
with CtxMgr(1):
|
||||
for i in range(1, 3):
|
||||
|
|
|
@ -21,10 +21,10 @@ def version_string(path=None, *, valid_semver=False):
|
|||
version = tag.strip().decode("utf-8", "strict")
|
||||
except subprocess.CalledProcessError:
|
||||
describe = subprocess.check_output("git describe --tags", shell=True, cwd=path)
|
||||
tag, additional_commits, committish = (
|
||||
tag, additional_commits, commit_ish = (
|
||||
describe.strip().decode("utf-8", "strict").rsplit("-", maxsplit=2)
|
||||
)
|
||||
committish = committish[1:]
|
||||
commit_ish = commit_ish[1:]
|
||||
if valid_semver:
|
||||
version_info = semver.parse_version_info(tag)
|
||||
if not version_info.prerelease:
|
||||
|
@ -33,12 +33,12 @@ def version_string(path=None, *, valid_semver=False):
|
|||
+ "-alpha.0.plus."
|
||||
+ additional_commits
|
||||
+ "+"
|
||||
+ committish
|
||||
+ commit_ish
|
||||
)
|
||||
else:
|
||||
version = tag + ".plus." + additional_commits + "+" + committish
|
||||
version = tag + ".plus." + additional_commits + "+" + commit_ish
|
||||
else:
|
||||
version = committish
|
||||
version = commit_ish
|
||||
return version
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue