Skip to content

Commit 0ea5602

Browse files
committed
Replace master with main
Fixes RustPython#3067
1 parent 186d2a4 commit 0ea5602

File tree

16 files changed

+19
-19
lines changed

16 files changed

+19
-19
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
on:
22
push:
3-
branches: [master, release]
3+
branches: [main, release]
44
pull_request:
55

66
name: CI

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

bytecode/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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

77
use bitflags::bitflags;

compiler/src/compile.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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
88
use crate::ir::{self, CodeInfo};

compiler/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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]

compiler/src/symboltable.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This ensures that global and nonlocal keywords are picked up.
44
Then the compiler can use the symbol table to generate proper
55
load 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

1010
use 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
*/
201201
fn 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)?;

derive/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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

55
extern crate proc_macro;

extra_tests/snippets/stdlib_imghdr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
33
import os
44
import imghdr
55

parser/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
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]

vm/src/builtins/function.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)