Remove import FIXMEs
This commit is contained in:
parent
94cef5ea22
commit
abb5c06ee6
@ -74,7 +74,8 @@ class LineConfigParser:
|
|||||||
if not self.data:
|
if not self.data:
|
||||||
logging.debug("No data to save.")
|
logging.debug("No data to save.")
|
||||||
return
|
return
|
||||||
import qutebrowser.config.config as config # FIXME
|
# We need to import this here because config needs LineConfigParser.
|
||||||
|
import qutebrowser.config.config as config
|
||||||
limit = -1 if self._limit is None else config.get(*self._limit)
|
limit = -1 if self._limit is None else config.get(*self._limit)
|
||||||
if limit == 0:
|
if limit == 0:
|
||||||
return
|
return
|
||||||
@ -89,7 +90,8 @@ class LineConfigParser:
|
|||||||
"""Delete the file if the limit was changed to 0."""
|
"""Delete the file if the limit was changed to 0."""
|
||||||
if self._limit is None:
|
if self._limit is None:
|
||||||
return
|
return
|
||||||
import qutebrowser.config.config as config # FIXME
|
# We need to import this here because config needs LineConfigParser.
|
||||||
|
import qutebrowser.config.config as config
|
||||||
value = config.get(section, option)
|
value = config.get(section, option)
|
||||||
if (section, option) == self._limit and value == 0:
|
if (section, option) == self._limit and value == 0:
|
||||||
if os.path.exists(self._configfile):
|
if os.path.exists(self._configfile):
|
||||||
|
Loading…
Reference in New Issue
Block a user