From 701115d88ba8b59b890672d131bc061c80e889c9 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Tue, 3 Sep 2013 22:40:40 -0400 Subject: Use isinstance for type comparison --- setuptools/command/upload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setuptools/command') diff --git a/setuptools/command/upload.py b/setuptools/command/upload.py index 8d258d5a..93da7a39 100755 --- a/setuptools/command/upload.py +++ b/setuptools/command/upload.py @@ -122,7 +122,7 @@ class upload(Command): body = StringIO.StringIO() for key, value in data.items(): # handle multiple entries for the same name - if type(value) != type([]): + if isinstance(value, list): value = [value] for value in value: if type(value) is tuple: -- cgit v1.2.1