Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rpg
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nicolas MAILLET
rpg
Commits
4e349d3d
Commit
4e349d3d
authored
6 years ago
by
Nicolas MAILLET
Browse files
Options
Downloads
Patches
Plain Diff
Force order of dict of exception to avoid random of dict
parent
6ef47271
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
rpg/rule.py
+2
-2
2 additions, 2 deletions
rpg/rule.py
with
2 additions
and
2 deletions
rpg/rule.py
+
2
−
2
View file @
4e349d3d
...
...
@@ -672,7 +672,7 @@ def find_missing_rule(main_rule, dict_of_rule, depth=0):
# Dict of missing rules. Key is depth.
ret
=
defaultdict
(
list
)
# For each rule of the exception
for
i
in
dict_of_rule
:
for
i
in
reversed
(
sorted
(
dict_of_rule
))
:
# Backup the dict
dict_of_rule_small
=
dict_of_rule
.
copy
()
# Remove current rule
...
...
@@ -751,7 +751,7 @@ def find_rechable_pos(main_rule, dict_of_rule):
ret
[
len
(
dict_of_rule
)]
=
main_rule
else
:
# For each rules
for
i
in
dict_of_rule
:
for
i
in
reversed
(
sorted
(
dict_of_rule
))
:
# Create the corresponding rule
tmp_rule
=
Rule
(
i
,
dict_of_rule
[
i
],
False
,
-
1
)
# Get the corresponding rule in main_rule
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment