Use "is" to test type objects, not "==".
diff --git a/Lib/distutils/command/install_data.py b/Lib/distutils/command/install_data.py
index 5c1f18a..2fa0da2 100644
--- a/Lib/distutils/command/install_data.py
+++ b/Lib/distutils/command/install_data.py
@@ -48,7 +48,7 @@
     def run (self):
         self.mkpath(self.install_dir)
         for f in self.data_files:
-            if type(f) == StringType:
+            if type(f) is StringType:
                 # it's a simple file, so copy it
                 f = convert_path(f)
                 if self.warn_dir: