Skip to content

Commit

Permalink
Fix z(sb1.n_sb)
Browse files Browse the repository at this point in the history
  • Loading branch information
dchentech committed Jul 30, 2014
1 parent 15fec3f commit 0fa11d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion split_block/group_ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def generate__possible_patterns_map(self, params_strs1):
if params_strs1.has_merged_at_least_one and (not self.is_all_broken()):
possible_patterns_map[sb1].append([None])

if (sb1.p_sb is None) and sb1.n_sb.is_candidate:
if (sb1.p_sb is None) and z(sb1.n_sb) and sb1.n_sb.is_candidate:
possible_patterns_map[sb1].append([None, sb1.n_sb])

if z(sb1.p_sb) and sb1.p_sb.is_candidate:
Expand Down
3 changes: 1 addition & 2 deletions split_block/item.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-

from etl_utils import is_regular_word, regexp
from etl_utils.lazy_data import ld
from etl_utils import is_regular_word, regexp, ld
import re


Expand Down

0 comments on commit 0fa11d9

Please sign in to comment.