Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mjtest
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uceme
mjtest
Commits
0134c9e0
Commit
0134c9e0
authored
Nov 18, 2016
by
Johannes Bechberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add binary-trees and fannkuch-redux programs
Bases on sources from the computer language benchmarks game
parent
cc871030
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
preproc/preproc/preprocessor.py
preproc/preproc/preprocessor.py
+5
-5
No files found.
preproc/preproc/preprocessor.py
View file @
0134c9e0
...
...
@@ -137,8 +137,8 @@ def is_importable_file(file: str) -> bool:
has_main_method
=
True
if
all
([
has_package
,
has_public_class
,
not
has_main_method
]):
return
True
if
(
has_package
or
has_public_class
)
==
has_main_method
:
raise
PreProcessorError
(
"File '{}' has invalid format: "
"package={}, 'public class'={}, main method={}"
.
format
(
file
,
has_package
,
has_public_class
,
has_main_method
))
#
if (has_package or has_public_class) == has_main_method:
#
raise PreProcessorError("File '{}' has invalid format: "
#
"package={}, 'public class'={}, main method={}"
#
.format(file, has_package, has_public_class, has_main_method))
return
False
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