Skip to content

Commit

Permalink
indent cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizux committed Oct 9, 2023
1 parent 83c39f0 commit 457e927
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ortools/gscip/gscip.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include "absl/strings/string_view.h"
#include "absl/synchronization/mutex.h"
#include "absl/types/span.h"
#include "lpi/lpi.h"
#include "ortools/base/logging.h"
#include "ortools/base/status_macros.h"
#include "ortools/gscip/gscip.pb.h"
Expand All @@ -57,7 +58,6 @@
#include "scip/scip_solvingstats.h"
#include "scip/scip_var.h"
#include "scip/scipdefplugins.h"
#include "lpi/lpi.h"
#include "scip/type_cons.h"
#include "scip/type_paramset.h"
#include "scip/type_retcode.h"
Expand Down
4 changes: 2 additions & 2 deletions tools/export_to_ipynb.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
print(f'Removing import {c_block.module}.{c_block.names[0].name}...')
# rewrite absl flag import
elif (isinstance(c_block, ast.ImportFrom) and c_block.module == 'absl'
and c_block.names[0].name =='flags'):
and c_block.names[0].name == 'flags'):
print(f'Rewrite import {c_block.module}.{c_block.names[0].name}...')
full_text += 'from ortools.sat.colab import flags\n'
# Unwrap __main__ function
Expand Down Expand Up @@ -156,7 +156,7 @@
print('Appending block...')
filtered_lines = lines[s:e]
for i, line in enumerate(filtered_lines):
filtered_lines[i] = line.replace('DEFINE_', 'define_')
filtered_lines[i] = line.replace('DEFINE_', 'define_')
filtered_lines = list(
filter(lambda l: not re.search(r'# \[START .*\]$', l), filtered_lines))
filtered_lines = list(
Expand Down

0 comments on commit 457e927

Please sign in to comment.