From 7da2d6ebbc8c04929e8bed552bc2e36d30564151 Mon Sep 17 00:00:00 2001 From: looooo Date: Sat, 21 Apr 2018 11:03:00 +0200 Subject: [PATCH] py3: rebar-fix --- src/Mod/Arch/ArchRebar.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Mod/Arch/ArchRebar.py b/src/Mod/Arch/ArchRebar.py index bd9b4b4ee1..5582a92528 100644 --- a/src/Mod/Arch/ArchRebar.py +++ b/src/Mod/Arch/ArchRebar.py @@ -505,18 +505,18 @@ def strprocessOfCustomSpacing(span_string): in specific syntax and return output in the form of list. For eg. Input: "3@100+2@200+3@100" Output: [100, 100, 100, 200, 200, 100, 100, 100]""" - import string - span_st = string.strip(span_string) - span_sp = string.split(span_st, '+') + # import string + span_st = span_string.strip() + span_sp = span_st.split('+') index = 0 spacinglist = [] while index < len(span_sp): # Find "@" recursively in span_sp array. # If not found, append the index value to "spacinglist" array. - if string.find(span_sp[index],'@') == -1: + if span_sp[index].find('@') == -1: spacinglist.append(float(span_sp[index])) else: - in_sp = string.split(span_sp[index], '@') + in_sp = span_sp[index].split('@') count = 0 while count < int(in_sp[0]): spacinglist.append(float(in_sp[1]))