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
Gwenaël Samain
cython
Commits
4479bf15
Commit
4479bf15
authored
Mar 28, 2016
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix some pylint findings
parent
1d39ec01
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
Cython/Compiler/Scanning.py
Cython/Compiler/Scanning.py
+8
-9
No files found.
Cython/Compiler/Scanning.py
View file @
4479bf15
...
...
@@ -5,14 +5,14 @@
from
__future__
import
absolute_import
import
os
import
platform
import
cython
cython
.
declare
(
make_lexicon
=
object
,
lexicon
=
object
,
print_function
=
object
,
error
=
object
,
warning
=
object
,
os
=
object
,
platform
=
object
)
import
os
import
platform
from
..
import
Utils
from
..Plex.Scanners
import
Scanner
from
..Plex.Errors
import
UnrecognizedInput
...
...
@@ -68,7 +68,7 @@ class Method(object):
class
CompileTimeScope
(
object
):
def
__init__
(
self
,
outer
=
None
):
def
__init__
(
self
,
outer
=
None
):
self
.
entries
=
{}
self
.
outer
=
outer
...
...
@@ -97,8 +97,7 @@ class CompileTimeScope(object):
def
initial_compile_time_env
():
benv
=
CompileTimeScope
()
names
=
(
'UNAME_SYSNAME'
,
'UNAME_NODENAME'
,
'UNAME_RELEASE'
,
'UNAME_VERSION'
,
'UNAME_MACHINE'
)
names
=
(
'UNAME_SYSNAME'
,
'UNAME_NODENAME'
,
'UNAME_RELEASE'
,
'UNAME_VERSION'
,
'UNAME_MACHINE'
)
for
name
,
value
in
zip
(
names
,
platform
.
uname
()):
benv
.
declare
(
name
,
value
)
try
:
...
...
@@ -272,8 +271,8 @@ class StringSourceDescriptor(SourceDescriptor):
if
not
encoding
:
return
self
.
codelines
else
:
return
[
line
.
encode
(
encoding
,
error_handling
).
decode
(
encoding
)
for
line
in
self
.
codelines
]
return
[
line
.
encode
(
encoding
,
error_handling
).
decode
(
encoding
)
for
line
in
self
.
codelines
]
def
get_description
(
self
):
return
self
.
name
...
...
@@ -487,7 +486,7 @@ class PyrexScanner(Scanner):
else
:
self
.
expected
(
what
,
message
)
def
expected
(
self
,
what
,
message
=
None
):
def
expected
(
self
,
what
,
message
=
None
):
if
message
:
self
.
error
(
message
)
else
:
...
...
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