Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d2cd6f8c
Commit
d2cd6f8c
authored
Mar 09, 1999
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small change by Jack Jansen.
Test for self.returntype behaving like OSErr rather than being it.
parent
db75afe6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Tools/bgen/bgen/macsupport.py
Tools/bgen/bgen/macsupport.py
+2
-2
No files found.
Tools/bgen/bgen/macsupport.py
View file @
d2cd6f8c
...
...
@@ -150,9 +150,9 @@ initstuff = """
# This requires that the OSErr type (defined above) has a non-trivial
# errorCheck method.
class
OSErrMixIn
:
"Mix-in class to treat OSErr return values special"
"Mix-in class to treat OSErr
/OSStatus
return values special"
def
makereturnvar
(
self
):
if
self
.
returntype
is
OSErr
:
if
self
.
returntype
.
__class__
==
OSErrType
:
return
Variable
(
self
.
returntype
,
"_err"
,
ErrorMode
)
else
:
return
Variable
(
self
.
returntype
,
"_rv"
,
OutMode
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment