Skip to content

Commit

Permalink
path_identity should also return None
Browse files Browse the repository at this point in the history
Signed-off-by: Kale Franz <[email protected]>
  • Loading branch information
kalefranz committed Jun 15, 2018
1 parent b303fcc commit 1891bf4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion conda/activate.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,12 @@ def _translation(found_path): # NOQA


def path_identity(paths):
return paths if isinstance(paths, string_types) else tuple(paths)
if isinstance(paths, string_types):
return paths
elif paths is None:
return None
else:
return tuple(paths)


def paths_equal(path1, path2):
Expand Down

0 comments on commit 1891bf4

Please sign in to comment.