diff --git a/src/compile.rs b/src/compile.rs index 4dd9e39..0ee81d3 100644 --- a/src/compile.rs +++ b/src/compile.rs @@ -2,7 +2,7 @@ //! Take an AST and transform it into bytecode //! //! Inspirational code: -//! https://github.com/python/cpython/blob/master/Python/compile.c +//! https://github.com/python/cpython/blob/main/Python/compile.c //! https://github.com/micropython/micropython/blob/master/py/compile.c use crate::ir::{self, CodeInfo}; diff --git a/src/lib.rs b/src/lib.rs index 3116547..3e3aca8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,5 @@ //! Compile a Python AST or source code into bytecode consumable by RustPython. -#![doc(html_logo_url = "https://raw.githubusercontent.com/RustPython/RustPython/master/logo.png")] +#![doc(html_logo_url = "https://raw.githubusercontent.com/RustPython/RustPython/main/logo.png")] #![doc(html_root_url = "https://docs.rs/rustpython-compiler/")] #[macro_use] diff --git a/src/symboltable.rs b/src/symboltable.rs index f5cdde2..c0fd9a2 100644 --- a/src/symboltable.rs +++ b/src/symboltable.rs @@ -4,7 +4,7 @@ This ensures that global and nonlocal keywords are picked up. Then the compiler can use the symbol table to generate proper load and store instructions for names. -Inspirational file: https://github.com/python/cpython/blob/master/Python/symtable.c +Inspirational file: https://github.com/python/cpython/blob/main/Python/symtable.c */ use crate::error::{CompileError, CompileErrorType}; @@ -196,7 +196,7 @@ impl std::fmt::Debug for SymbolTable { } /* Perform some sort of analysis on nonlocals, globals etc.. - See also: https://github.com/python/cpython/blob/master/Python/symtable.c#L410 + See also: https://github.com/python/cpython/blob/main/Python/symtable.c#L410 */ fn analyze_symbol_table(symbol_table: &mut SymbolTable) -> SymbolTableResult { let mut analyzer = SymbolTableAnalyzer::default(); @@ -760,7 +760,7 @@ impl SymbolTableBuilder { value, simple, } => { - // https://github.com/python/cpython/blob/master/Python/symtable.c#L1233 + // https://github.com/python/cpython/blob/main/Python/symtable.c#L1233 match &target.node { ast::ExprKind::Name { id, .. } if *simple => { self.register_name(id, SymbolUsage::AnnotationAssigned, location)?;