eric6/Helpviewer/Network/NetworkDiskCache.py

branch
maintenance
changeset 7286
7eb04391adf7
parent 7226
babe80d84a3e
parent 7285
1ff497f33f31
child 7287
1c17f2191bdd
--- a/eric6/Helpviewer/Network/NetworkDiskCache.py	Mon Sep 09 18:52:08 2019 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,31 +0,0 @@
-# -*- coding: utf-8 -*-
-
-# Copyright (c) 2009 - 2019 Detlev Offenbach <detlev@die-offenbachs.de>
-#
-
-"""
-Module implementing a disk cache respecting privacy.
-"""
-
-from __future__ import unicode_literals
-
-from PyQt5.QtWebKit import QWebSettings
-from PyQt5.QtNetwork import QNetworkDiskCache
-
-
-class NetworkDiskCache(QNetworkDiskCache):
-    """
-    Class implementing a disk cache respecting privacy.
-    """
-    def prepare(self, metaData):
-        """
-        Public method to prepare the disk cache file.
-        
-        @param metaData meta data for a URL (QNetworkCacheMetaData)
-        @return reference to the IO device (QIODevice)
-        """
-        if QWebSettings.globalSettings().testAttribute(
-                QWebSettings.PrivateBrowsingEnabled):
-            return None
-        
-        return QNetworkDiskCache.prepare(self, metaData)

eric ide

mercurial