Using python 2.7.11
Dashes from a utf-8 document I'm reading in are being ignored by if statements intended to detect them. The dash prints to the console as a '-' character, and when shown as a representation displays as u'-'. The character passed through ord() displays ordinal 45, which is the same as the dash character.
segment = line[:section_widths[row_index]].strip()
line = line[section_widths[row_index]+1:]
if segment:
print 'seg'
if segment is u'-' or segment is '-':
print 'DASH DETECTED'
continue
print "ord %d" % ord(segment[0])