summaryrefslogtreecommitdiff
path: root/dotbot/plugins/link.py
diff options
context:
space:
mode:
Diffstat (limited to 'dotbot/plugins/link.py')
-rw-r--r--dotbot/plugins/link.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/dotbot/plugins/link.py b/dotbot/plugins/link.py
index 9ba5540..82a61ce 100644
--- a/dotbot/plugins/link.py
+++ b/dotbot/plugins/link.py
@@ -53,19 +53,19 @@ class Link(dotbot.Plugin):
if use_glob:
self._log.debug("Globbing with path: " + str(path))
glob_results = glob.glob(path)
- if len(glob_results) is 0:
+ if len(glob_results) == 0:
self._log.warning("Globbing couldn't find anything matching " + str(path))
success = False
continue
glob_star_loc = path.find('*')
- if glob_star_loc is -1 and destination[-1] is '/':
+ if glob_star_loc == -1 and destination[-1] == '/':
self._log.error("Ambiguous action requested.")
self._log.error("No wildcard in glob, directory use undefined: " +
destination + " -> " + str(glob_results))
self._log.warning("Did you want to link the directory or into it?")
success = False
continue
- elif glob_star_loc is -1 and len(glob_results) is 1:
+ elif glob_star_loc == -1 and len(glob_results) == 1:
# perform a normal link operation
if create:
success &= self._create(destination)