summaryrefslogtreecommitdiffstats
path: root/pyload/remote/ThriftBackend.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-12 02:00:28 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-12 03:22:29 +0200
commit0349b81a10d2937897f30031c4dedb49aa132d8c (patch)
tree3db2827cd64888cc013e064d4e201b8a6ddbc7a9 /pyload/remote/ThriftBackend.py
parentMerge pull request #12 from GammaC0de/GammaC0de-fix-api (diff)
downloadpyload-0349b81a10d2937897f30031c4dedb49aa132d8c.tar.xz
'from os' -> 'import os' and so on...
Diffstat (limited to 'pyload/remote/ThriftBackend.py')
-rw-r--r--pyload/remote/ThriftBackend.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyload/remote/ThriftBackend.py b/pyload/remote/ThriftBackend.py
index f71e264e2..9e0afda16 100644
--- a/pyload/remote/ThriftBackend.py
+++ b/pyload/remote/ThriftBackend.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# @author: RaNaN, mkaay
-from os.path import exists
+import os
from pyload.manager.Remote import BackendBase
@@ -23,7 +23,7 @@ class ThriftBackend(BackendBase):
cert = None
if self.core.config.get("ssl", "activated"):
- if exists(self.core.config.get("ssl", "cert")) and exists(self.core.config.get("ssl", "key")):
+ if os.path.exists(self.core.config.get("ssl", "cert")) and os.path.exists(self.core.config.get("ssl", "key")):
self.core.log.info(_("Using SSL ThriftBackend"))
key = self.core.config.get("ssl", "key")
cert = self.core.config.get("ssl", "cert")