Skip to content

Commit

Permalink
Use lazy.lazy in default config instead of command.lazy (deprecated) (#…
Browse files Browse the repository at this point in the history
…1428)

* refactor: Use lazy.lazy in default config instead of command.lazy (deprecated)

* docs: Replace occurrences of command.lazy by lazy.lazy
  • Loading branch information
pawamoy authored and ramnes committed Sep 6, 2019
1 parent 3d5e9ce commit 8789c67
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/manual/config/lazy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Lazy objects
============

The ``command.lazy`` object is a special helper object to specify a command for
The ``lazy.lazy`` object is a special helper object to specify a command for
later execution. This object acts like the root of the object graph, which
means that we can specify a key binding command with the same syntax used to
call the command through a script or through :doc:`/manual/commands/qshell`.
Expand Down
2 changes: 1 addition & 1 deletion libqtile/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Key:
key:
A key specification, e.g. "a", "Tab", "Return", "space".
commands:
A list of lazy command objects generated with the command.lazy helper.
A list of lazy command objects generated with the lazy.lazy helper.
If multiple Call objects are specified, they are run in sequence.
kwds:
A dictionary containing "desc", allowing a description to be added
Expand Down
2 changes: 1 addition & 1 deletion libqtile/resources/default_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# SOFTWARE.

from libqtile.config import Key, Screen, Group, Drag, Click
from libqtile.command import lazy
from libqtile.lazy import lazy
from libqtile import layout, bar, widget

from typing import List # noqa: F401
Expand Down

0 comments on commit 8789c67

Please sign in to comment.