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
Kirill Smelkov
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 @@
...
@@ -5,14 +5,14 @@
from
__future__
import
absolute_import
from
__future__
import
absolute_import
import
os
import
platform
import
cython
import
cython
cython
.
declare
(
make_lexicon
=
object
,
lexicon
=
object
,
cython
.
declare
(
make_lexicon
=
object
,
lexicon
=
object
,
print_function
=
object
,
error
=
object
,
warning
=
object
,
print_function
=
object
,
error
=
object
,
warning
=
object
,
os
=
object
,
platform
=
object
)
os
=
object
,
platform
=
object
)
import
os
import
platform
from
..
import
Utils
from
..
import
Utils
from
..Plex.Scanners
import
Scanner
from
..Plex.Scanners
import
Scanner
from
..Plex.Errors
import
UnrecognizedInput
from
..Plex.Errors
import
UnrecognizedInput
...
@@ -68,7 +68,7 @@ class Method(object):
...
@@ -68,7 +68,7 @@ class Method(object):
class
CompileTimeScope
(
object
):
class
CompileTimeScope
(
object
):
def
__init__
(
self
,
outer
=
None
):
def
__init__
(
self
,
outer
=
None
):
self
.
entries
=
{}
self
.
entries
=
{}
self
.
outer
=
outer
self
.
outer
=
outer
...
@@ -97,8 +97,7 @@ class CompileTimeScope(object):
...
@@ -97,8 +97,7 @@ class CompileTimeScope(object):
def
initial_compile_time_env
():
def
initial_compile_time_env
():
benv
=
CompileTimeScope
()
benv
=
CompileTimeScope
()
names
=
(
'UNAME_SYSNAME'
,
'UNAME_NODENAME'
,
'UNAME_RELEASE'
,
names
=
(
'UNAME_SYSNAME'
,
'UNAME_NODENAME'
,
'UNAME_RELEASE'
,
'UNAME_VERSION'
,
'UNAME_MACHINE'
)
'UNAME_VERSION'
,
'UNAME_MACHINE'
)
for
name
,
value
in
zip
(
names
,
platform
.
uname
()):
for
name
,
value
in
zip
(
names
,
platform
.
uname
()):
benv
.
declare
(
name
,
value
)
benv
.
declare
(
name
,
value
)
try
:
try
:
...
@@ -272,8 +271,8 @@ class StringSourceDescriptor(SourceDescriptor):
...
@@ -272,8 +271,8 @@ class StringSourceDescriptor(SourceDescriptor):
if
not
encoding
:
if
not
encoding
:
return
self
.
codelines
return
self
.
codelines
else
:
else
:
return
[
line
.
encode
(
encoding
,
error_handling
).
decode
(
encoding
)
return
[
line
.
encode
(
encoding
,
error_handling
).
decode
(
encoding
)
for
line
in
self
.
codelines
]
for
line
in
self
.
codelines
]
def
get_description
(
self
):
def
get_description
(
self
):
return
self
.
name
return
self
.
name
...
@@ -487,7 +486,7 @@ class PyrexScanner(Scanner):
...
@@ -487,7 +486,7 @@ class PyrexScanner(Scanner):
else
:
else
:
self
.
expected
(
what
,
message
)
self
.
expected
(
what
,
message
)
def
expected
(
self
,
what
,
message
=
None
):
def
expected
(
self
,
what
,
message
=
None
):
if
message
:
if
message
:
self
.
error
(
message
)
self
.
error
(
message
)
else
:
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