Commits

Anonymous committed 73158e8

Decode the unicode className to ascii before passing it to type(). This
makes "NibClassBuilder.py -t" work again.

Comments (0)

Files changed (1)

pyobjc/Lib/AppKit/NibClassBuilder.py

 			# instantiate class, equivalent to
 			# class <className>(AutoBaseClass):
 			#     pass
-			cls = type(className, (AutoBaseClass,), {})
+			cls = type(className.encode('ascii'), (AutoBaseClass,), {})
 		except NibLoaderError, why:
 			print "*** Failed class: %s; NibLoaderError: %s" % (
 					className, why[0])