@@ -31,7 +31,7 @@ macro_rules! parse_arguments {
31
31
} } ;
32
32
}
33
33
34
- fn write_stdout < EP : EnvProxy > ( processor : & mut Processor < EP > , args : Vec < ObjectRef > ) -> Result < PyResult , ProcessorError > {
34
+ fn write_stdout < EP : EnvProxy > ( processor : & mut Processor < EP > , args : Vec < ObjectRef > ) -> PyResult {
35
35
parse_arguments ! ( "__primitives__.write_stdout" , processor. store, args,
36
36
"value" "a string, boolean, or integer" : {
37
37
ObjectContent :: String ( ref s) => {
@@ -48,10 +48,10 @@ fn write_stdout<EP: EnvProxy>(processor: &mut Processor<EP>, args: Vec<ObjectRef
48
48
} ,
49
49
}
50
50
) ;
51
- Ok ( PyResult :: Return ( processor. primitive_objects . none . clone ( ) ) )
51
+ PyResult :: Return ( processor. primitive_objects . none . clone ( ) )
52
52
}
53
53
54
- fn build_class < EP : EnvProxy > ( processor : & mut Processor < EP > , args : Vec < ObjectRef > ) -> Result < PyResult , ProcessorError > {
54
+ fn build_class < EP : EnvProxy > ( processor : & mut Processor < EP > , args : Vec < ObjectRef > ) -> PyResult {
55
55
let name;
56
56
let code;
57
57
let mut args_iter = args. into_iter ( ) ;
@@ -72,10 +72,10 @@ fn build_class<EP: EnvProxy>(processor: &mut Processor<EP>, args: Vec<ObjectRef>
72
72
else {
73
73
bases
74
74
} ;
75
- Ok ( PyResult :: Return ( processor. store . allocate ( Object :: new_class ( name, Some ( code) , processor. primitive_objects . type_ . clone ( ) , bases) ) ) )
75
+ PyResult :: Return ( processor. store . allocate ( Object :: new_class ( name, Some ( code) , processor. primitive_objects . type_ . clone ( ) , bases) ) )
76
76
}
77
77
78
- fn issubclass < EP : EnvProxy > ( processor : & mut Processor < EP > , args : Vec < ObjectRef > ) -> Result < PyResult , ProcessorError > {
78
+ fn issubclass < EP : EnvProxy > ( processor : & mut Processor < EP > , args : Vec < ObjectRef > ) -> PyResult {
79
79
if args. len ( ) != 2 {
80
80
panic ! ( format!( "__primitives__.issubclass takes 2 arguments, not {}" , args. len( ) ) )
81
81
}
@@ -90,7 +90,7 @@ fn issubclass<EP: EnvProxy>(processor: &mut Processor<EP>, args: Vec<ObjectRef>)
90
90
continue
91
91
} ;
92
92
if candidate. is ( second) {
93
- return Ok ( PyResult :: Return ( processor. primitive_objects . true_obj . clone ( ) ) )
93
+ return PyResult :: Return ( processor. primitive_objects . true_obj . clone ( ) )
94
94
} ;
95
95
match processor. store . deref ( & candidate) . bases {
96
96
None => ( ) ,
@@ -101,10 +101,10 @@ fn issubclass<EP: EnvProxy>(processor: &mut Processor<EP>, args: Vec<ObjectRef>)
101
101
}
102
102
} ;
103
103
}
104
- Ok ( PyResult :: Return ( processor. primitive_objects . false_obj . clone ( ) ) )
104
+ PyResult :: Return ( processor. primitive_objects . false_obj . clone ( ) )
105
105
}
106
106
107
- fn isinstance < EP : EnvProxy > ( processor : & mut Processor < EP > , mut args : Vec < ObjectRef > ) -> Result < PyResult , ProcessorError > {
107
+ fn isinstance < EP : EnvProxy > ( processor : & mut Processor < EP > , mut args : Vec < ObjectRef > ) -> PyResult {
108
108
if args. len ( ) != 2 {
109
109
panic ! ( format!( "__primitives__.isinstance takes 2 arguments, not {}" , args. len( ) ) )
110
110
}
0 commit comments