Ronald Oussoren avatar 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
........

Comments (0)

Files changed (3)

pyobjc-framework-CFNetwork/Modules/_manual.m

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

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",
+    )

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

 try:
     from Quartz.QuickLookUI import *
 except ImportError, msg:
-    import traceback
-    traceback.print_exc()
     pass
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.