Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
cython
Commits
f5a6bc37
Commit
f5a6bc37
authored
Aug 15, 2012
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify code by inverting negated comparison
parent
f97dd067
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Cython/Compiler/Symtab.py
Cython/Compiler/Symtab.py
+4
-4
No files found.
Cython/Compiler/Symtab.py
View file @
f5a6bc37
...
@@ -968,14 +968,14 @@ class ModuleScope(Scope):
...
@@ -968,14 +968,14 @@ class ModuleScope(Scope):
self.parent_module = parent_module
self.parent_module = parent_module
outer_scope = Builtin.builtin_scope
outer_scope = Builtin.builtin_scope
Scope.__init__(self, name, outer_scope, parent_module)
Scope.__init__(self, name, outer_scope, parent_module)
if name != "
__init__
":
if name == "
__init__
":
self.module_name = name
self.is_package = False
else:
# Treat Spam/__init__.pyx specially, so that when Python loads
# Treat Spam/__init__.pyx specially, so that when Python loads
# Spam/__init__.so, initSpam() is defined.
# Spam/__init__.so, initSpam() is defined.
self.module_name = parent_module.module_name
self.module_name = parent_module.module_name
self.is_package = True
self.is_package = True
else:
self.module_name = name
self.is_package = False
self.module_name = EncodedString(self.module_name)
self.module_name = EncodedString(self.module_name)
self.context = context
self.context = context
self.module_cname = Naming.module_cname
self.module_cname = Naming.module_cname
...
...
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