oznu/pycpanel — pull request #1 by mknod (2014-04-06 01:29:04+00:00)
Title: seperated replace statements in hash to make things more os-agnostic

When using
if hash != None: hash = hash.replace('\r\n', '')
This does not distinguish between windows and unix environments, to be able to use a hash on a unix environment you can separate the replace statements to catch both carriage returns and newlines with no penalty:
if hash != None: hash = hash.replace('\r', '').replace('\n', '')