Commit abaa53b8 authored by Lucas Carvalho's avatar Lucas Carvalho

Using _MARKER is overkill.

Following the previous commit, _MARKER is not required anymore.
parent 55732eaf
...@@ -24,9 +24,6 @@ import urlparse ...@@ -24,9 +24,6 @@ import urlparse
import M2Crypto import M2Crypto
_MARKER = ([], [''], None, '')
class NetworkcacheClient(object): class NetworkcacheClient(object):
''' '''
NetworkcacheClient is a wrapper for httplib. NetworkcacheClient is a wrapper for httplib.
...@@ -197,7 +194,7 @@ class NetworkcacheClient(object): ...@@ -197,7 +194,7 @@ class NetworkcacheClient(object):
""" """
Return the signature based on certification file. Return the signature based on certification file.
""" """
if self.signature_private_key_file in _MARKER: if self.signature_private_key_file is None:
return '' return ''
SignEVP = M2Crypto.EVP.load_key(self.signature_private_key_file) SignEVP = M2Crypto.EVP.load_key(self.signature_private_key_file)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment