View Single Post
  #8  
Old 03-12-2015, 10:55 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
You can use the following to strip trailing newline, space, and null byte characters:

Code:
v = e.raw_data.rstrip('\n\0 ')
Reply With Quote