Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CICD 2022
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bilel El Yaagoubi
CICD 2022
Compare revisions
706cc320f8192044924c26b82ff1d4071a474878 to 443fb4096a96d70771e113fffe66f48197ac4950
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
octolel/cicd
Select target project
No results found
443fb4096a96d70771e113fffe66f48197ac4950
Select Git revision
Branches
admins
main
tp1
tp1-correction
tp2
tp2-correction
tp3
7 results
Swap
Target
octolel/cicd
Select target project
octolel/cicd
bruliette/cicd-2022-juju
desjardins/cicd
greets/cicd
2022faureal/cicd
2022flamama/cicd
2022thirionma/cicd
siestetactique/cicd
2021khlauthu/cicd
aubinx/cicd
2022jacquinar/cicd
gravlax/cicd
12 results
706cc320f8192044924c26b82ff1d4071a474878
Select Git revision
Branches
admins
main
tp1
tp1-correction
tp2
tp2-correction
tp3
7 results
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
make it work
· e732b396
Bilel El Yaagoubi
authored
2 years ago
e732b396
Merge branch 'tp1' of gitlab.viarezo.fr:octolel/cicd into tp1
· 443fb409
Bilel El Yaagoubi
authored
2 years ago
443fb409
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
calculator/calculator.py
+2
-2
2 additions, 2 deletions
calculator/calculator.py
with
2 additions
and
2 deletions
calculator/calculator.py
View file @
443fb409
...
...
@@ -18,7 +18,7 @@ class Calculator:
operators
=
STANDARD_OPERATORS
self
.
operators
=
operators
def
tokenize
(
self
,
line
:
str
)
->
list
[
Token
]
:
def
tokenize
(
self
,
line
:
str
):
tokens
=
[]
for
token
in
line
.
split
():
if
token
in
self
.
operators
:
...
...
@@ -31,7 +31,7 @@ class Calculator:
raise
ValueError
(
f
"
Invalid token
{
token
}
"
)
from
exc
return
tokens
def
parse
(
self
,
tokens
:
list
[
Token
]
)
->
Expression
:
def
parse
(
self
,
tokens
)
->
Expression
:
"""
Parse a list of tokens into an ordered expression.
"""
...
...
This diff is collapsed.
Click to expand it.