Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. issues_list = [['Does Old Single Line Diagram file, Diagram.xml, Work With New WPS 325 and older site Elbow Creek and attempting to reuse old single line diagram diagram.xml software folder structure.rnrnCan new WPSxa0software display older style single line diagrams?'],
  2. ['Trafo oil outlet temp warming higher than alarm limit',
  3. 'Hi,rnrnPar112002 is used for the trigger limit for compared to Err112001?xa0rnrnLooking at the last 5 months there has only been 3 Err112001 and no Err112013 which could indicate the oil outlet temp is lower and it should be the warning limit being lowered.rnrnxa0rnrnxa0']]
  4.  
  5. final_result = []
  6.  
  7. for item in issues_list:
  8. result = []
  9. for inner_item in item:
  10. line = inner_item.replace("-"," ").replace("_"," ").replace("n"," ").replace("r"," ")
  11. inner_result = []
  12. for word in line.split(" "):
  13. nl = ''
  14. if "http" in word:
  15. continue
  16. for l in word:
  17. if l.isalpha():
  18. nl += l
  19. inner_result.append(nl)
  20. result.append(" ".join(inner_result))
  21. final_result.append(result)
  22. print (final_result)
  23.  
  24. AttributeError
  25. <ipython-input-4-79c7163de98b> in <module>
  26. 5 result = []
  27. 6 for inner_item in item:
  28. ----> 7 line = inner_item.replace("-"," ").replace("_"," ").replace("n"," ").replace("r"," ")
  29. 8 inner_result = []
  30. 9 for word in line.split(" "):
  31.  
  32. AttributeError: 'NoneType' object has no attribute 'replace'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement