comparison molecules.py @ 4:31d2baa37efe draft default tip

Uploaded
author bgruening
date Sat, 27 Apr 2013 09:03:16 -0400
parents bc6a7eeb7c32
children
comparison
equal deleted inserted replaced
3:287892c9c9db 4:31d2baa37efe
71 return 'text/plain' 71 return 'text/plain'
72 72
73 class MOL( GenericMolFile ): 73 class MOL( GenericMolFile ):
74 file_ext = "mol" 74 file_ext = "mol"
75 def sniff( self, filename ): 75 def sniff( self, filename ):
76 if count_special_lines("^M\s*END", filename) = 1: 76 if count_special_lines("^M\s*END", filename) == 1:
77 return True 77 return True
78 else: 78 else:
79 return False 79 return False
80 80
81 def set_meta( self, dataset, **kwd ): 81 def set_meta( self, dataset, **kwd ):