mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-02 13:41:10 +00:00
Add py-command
option
This commit is contained in:
parent
765acceaf4
commit
216470b3a1
7 changed files with 69 additions and 28 deletions
|
@ -2054,7 +2054,10 @@ impl CodeGenerator {
|
|||
self.write_arg(1u8);
|
||||
self.stack_dec();
|
||||
self.emit_pop_top();
|
||||
let erg_std_mod = if self.py_version.le(&PythonVersion::new(3, 8, 10)) {
|
||||
let erg_std_mod = if self
|
||||
.py_version
|
||||
.le(&PythonVersion::new(3, Some(8), Some(10)))
|
||||
{
|
||||
Identifier::public("_erg_std_prelude_old")
|
||||
} else {
|
||||
Identifier::public("_erg_std_prelude")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue