[CalendarServer-changes] [14623] PyKerberos/trunk/setup.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Mar 26 15:16:17 PDT 2015


Revision: 14623
          http://trac.calendarserver.org//changeset/14623
Author:   wsanchez at apple.com
Date:     2015-03-26 15:16:17 -0700 (Thu, 26 Mar 2015)
Log Message:
-----------
Py3 friendly

Modified Paths:
--------------
    PyKerberos/trunk/setup.py

Modified: PyKerberos/trunk/setup.py
===================================================================
--- PyKerberos/trunk/setup.py	2015-03-26 22:15:30 UTC (rev 14622)
+++ PyKerberos/trunk/setup.py	2015-03-26 22:16:17 UTC (rev 14623)
@@ -15,9 +15,13 @@
 ##
 
 from distutils.core import setup, Extension
-from commands import getoutput
 
+try:
+    from subprocess import getoutput
+except ImportError:
+    from commands import getoutput
 
+
 long_description = """
 This Python package is a high-level wrapper for Kerberos (GSSAPI) operations.
 The goal is to avoid having to build a module that wraps the entire
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20150326/bff35414/attachment.html>


More information about the calendarserver-changes mailing list