Commits

Ronald Oussoren  committed fd3b11f

Merged revisions 2561 via svnmerge from
https://svn.red-bean.com/pyobjc/trunk/pyobjc

........
r2561 | ronaldoussoren | 2010-08-10 12:44:26 +0200 (Tue, 10 Aug 2010) | 3 lines

CFNetwork: fix for 10.5 compilation
Quartz: remove debug prints
........

  • Participants
  • Parent commits 740b0eb
  • Branches pyobjc-2.3.x

Comments (0)

Files changed (3)

File pyobjc-framework-CFNetwork/Modules/_manual.m

 
 	return rv;
 }
+#endif
 
+#if PyObjC_BUILD_RELEASE >= 1005
 static PyObject*
 m_CFNetworkExecuteProxyAutoConfigurationURL(PyObject* mod __attribute__((__unused__)),
 		PyObject* args)

File pyobjc-framework-Quartz/Lib/Quartz/QuickLookUI/__init__.py

 This module does not contain docstrings for the wrapped code, check Apple's
 documentation for details on how to use these functions and classes. 
 '''
-try:
+import objc as _objc
+from AppKit import *
+from Foundation import *
+#from QuickLook import *
 
-    import objc as _objc
-    from AppKit import *
-    from Foundation import *
-    #from QuickLook import *
-
-    __bundle__ = _objc.initFrameworkWrapper("QuickLookUI",
-        frameworkIdentifier="com.apple.QuickLookUIFramework",
-        frameworkPath=_objc.pathForFramework(
-            "/System/Library/Frameworks/Quartz.framework/Frameworks/QuickLookUI.framework"),
-        globals=globals(),
-        frameworkResourceName="Quartz.QuickLookUI",
-        )
-
-except Exception, e:
-    import traceback
-    traceback.print_exc()
-    raise
+__bundle__ = _objc.initFrameworkWrapper("QuickLookUI",
+    frameworkIdentifier="com.apple.QuickLookUIFramework",
+    frameworkPath=_objc.pathForFramework(
+        "/System/Library/Frameworks/Quartz.framework/Frameworks/QuickLookUI.framework"),
+    globals=globals(),
+    frameworkResourceName="Quartz.QuickLookUI",
+    )

File pyobjc-framework-Quartz/Lib/Quartz/__init__.py

 try:
     from Quartz.QuickLookUI import *
 except ImportError, msg:
-    import traceback
-    traceback.print_exc()
     pass