File tree Expand file tree Collapse file tree 16 files changed +19
-19
lines changed
Expand file tree Collapse file tree 16 files changed +19
-19
lines changed Original file line number Diff line number Diff line change 11on :
22 push :
3- branches : [master , release]
3+ branches : [main , release]
44 pull_request :
55
66name : CI
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ A Python-3 (CPython >= 3.8.0) Interpreter written in Rust :snake: :scream:
66:metal : .
77
88[ ![ Build Status] ( https://github.com/RustPython/RustPython/workflows/CI/badge.svg )] ( https://github.com/RustPython/RustPython/actions?query=workflow%3ACI )
9- [ ![ codecov] ( https://codecov.io/gh/RustPython/RustPython/branch/master /graph/badge.svg )] ( https://codecov.io/gh/RustPython/RustPython )
9+ [ ![ codecov] ( https://codecov.io/gh/RustPython/RustPython/branch/main /graph/badge.svg )] ( https://codecov.io/gh/RustPython/RustPython )
1010[ ![ License: MIT] ( https://img.shields.io/badge/License-MIT-green.svg )] ( https://opensource.org/licenses/MIT )
1111[ ![ Contributors] ( https://img.shields.io/github/contributors/RustPython/RustPython.svg )] ( https://github.com/RustPython/RustPython/graphs/contributors )
1212[ ![ Gitter] ( https://badges.gitter.im/RustPython/Lobby.svg )] ( https://gitter.im/rustpython/Lobby )
Original file line number Diff line number Diff line change 11//! Implement python as a virtual machine with bytecodes. This module
22//! implements bytecode structure.
33
4- #![ doc( html_logo_url = "https://raw.zhiqian.eu.org/RustPython/RustPython/master /logo.png" ) ]
4+ #![ doc( html_logo_url = "https://raw.zhiqian.eu.org/RustPython/RustPython/main /logo.png" ) ]
55#![ doc( html_root_url = "https://docs.rs/rustpython-bytecode/" ) ]
66
77use bitflags:: bitflags;
Original file line number Diff line number Diff line change 22//! Take an AST and transform it into bytecode
33//!
44//! Inspirational code:
5- //! https://github.com/python/cpython/blob/master /Python/compile.c
5+ //! https://github.com/python/cpython/blob/main /Python/compile.c
66//! https://github.com/micropython/micropython/blob/master/py/compile.c
77
88use crate :: ir:: { self , CodeInfo } ;
Original file line number Diff line number Diff line change 11//! Compile a Python AST or source code into bytecode consumable by RustPython.
2- #![ doc( html_logo_url = "https://raw.zhiqian.eu.org/RustPython/RustPython/master /logo.png" ) ]
2+ #![ doc( html_logo_url = "https://raw.zhiqian.eu.org/RustPython/RustPython/main /logo.png" ) ]
33#![ doc( html_root_url = "https://docs.rs/rustpython-compiler/" ) ]
44
55#[ macro_use]
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ This ensures that global and nonlocal keywords are picked up.
44Then the compiler can use the symbol table to generate proper
55load and store instructions for names.
66
7- Inspirational file: https://github.com/python/cpython/blob/master /Python/symtable.c
7+ Inspirational file: https://github.com/python/cpython/blob/main /Python/symtable.c
88*/
99
1010use crate :: error:: { CompileError , CompileErrorType } ;
@@ -196,7 +196,7 @@ impl std::fmt::Debug for SymbolTable {
196196}
197197
198198/* Perform some sort of analysis on nonlocals, globals etc..
199- See also: https://github.com/python/cpython/blob/master /Python/symtable.c#L410
199+ See also: https://github.com/python/cpython/blob/main /Python/symtable.c#L410
200200*/
201201fn analyze_symbol_table ( symbol_table : & mut SymbolTable ) -> SymbolTableResult {
202202 let mut analyzer = SymbolTableAnalyzer :: default ( ) ;
@@ -760,7 +760,7 @@ impl SymbolTableBuilder {
760760 value,
761761 simple,
762762 } => {
763- // https://github.com/python/cpython/blob/master /Python/symtable.c#L1233
763+ // https://github.com/python/cpython/blob/main /Python/symtable.c#L1233
764764 match & target. node {
765765 ast:: ExprKind :: Name { id, .. } if * simple => {
766766 self . register_name ( id, SymbolUsage :: AnnotationAssigned , location) ?;
Original file line number Diff line number Diff line change 11#![ recursion_limit = "128" ]
2- #![ doc( html_logo_url = "https://raw.zhiqian.eu.org/RustPython/RustPython/master /logo.png" ) ]
2+ #![ doc( html_logo_url = "https://raw.zhiqian.eu.org/RustPython/RustPython/main /logo.png" ) ]
33#![ doc( html_root_url = "https://docs.rs/rustpython-derive/" ) ]
44
55extern crate proc_macro;
Original file line number Diff line number Diff line change 11# unittest for modified imghdr.py
2- # Should be replace it into https://github.com/python/cpython/blob/master /Lib/test/test_imghdr.py
2+ # Should be replace it into https://github.com/python/cpython/blob/main /Lib/test/test_imghdr.py
33import os
44import imghdr
55
Original file line number Diff line number Diff line change 1515//!
1616//! ```
1717
18- #![ doc( html_logo_url = "https://raw.zhiqian.eu.org/RustPython/RustPython/master /logo.png" ) ]
18+ #![ doc( html_logo_url = "https://raw.zhiqian.eu.org/RustPython/RustPython/main /logo.png" ) ]
1919#![ doc( html_root_url = "https://docs.rs/rustpython-parser/" ) ]
2020
2121#[ macro_use]
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ impl PyFunction {
8181 // the proper variables keeping into account default values
8282 // and starargs and kwargs.
8383 // See also: PyEval_EvalCodeWithName in cpython:
84- // https://github.com/python/cpython/blob/master /Python/ceval.c#L3681
84+ // https://github.com/python/cpython/blob/main /Python/ceval.c#L3681
8585
8686 let mut fastlocals = frame. fastlocals . lock ( ) ;
8787
You can’t perform that action at this time.
0 commit comments