This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Use str instead of basestring

  • Loading branch information...
mahmoudhossam committed May 8, 2012
1 parent 212dee4 commit d0f8b4989c8f05b7e11fd7f9544f15561b1e99e2
Showing with 2 additions and 2 deletions.
  1. +2 −2 args.py
View
@@ -34,7 +34,7 @@ def _expand_path(path):
def _is_collection(obj):
"""Tests if an object is a collection. Strings don't count."""
- if isinstance(obj, basestring):
+ if isinstance(obj, str):
return False
return hasattr(obj, '__getitem__')
@@ -395,4 +395,4 @@ def copy(self):
not_flags = args.not_flags
files = args.files
not_files = args.not_files
-copy = args.copy
+copy = args.copy

0 comments on commit d0f8b49

Please sign in to comment.