1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-05 03:54:47 +00:00

Commenting a couple of utilities

This commit is contained in:
Davide Laezza
2019-04-22 15:21:51 +02:00
parent 2949feaefd
commit c185305aed

View File

@@ -133,8 +133,10 @@ def must_ignore(paths, ignores, debug=False):
def is_dict(obj):
"""Return true if obj is dict."""
return isinstance(obj, dict)
def is_not_magic(name):
"""Return true if name is not a magic method name."""
return (name[0:2], name[-2:]) != ('__', '__')