mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Change a short name of Bool and None
changes a short name of True, False, None from "keyword" to "True", "False", "None" themselves
This commit is contained in:
1 parent
3c07c7ce00
commit
918fa48eda
1 file changed
+8
-1
+8
-1
@@ -20,7 +20,14 @@ impl<U> ExprKind<U> {
|
||||
| Constant::Complex { .. }
|
||||
| Constant::Bytes(_) => "literal",
|
||||
Constant::Tuple(_) => "tuple",
|
||||
Constant::Bool(_) | Constant::None => "keyword",
|
||||
Constant::Bool(b) => {
|
||||
if *b {
|
||||
"True"
|
||||
} else {
|
||||
"False"
|
||||
}
|
||||
}
|
||||
Constant::None => "None",
|
||||
Constant::Ellipsis => "ellipsis",
|
||||
},
|
||||
ExprKind::List { .. } => "list",
|
||||
|
||||
Reference in new issue
Block a user