Revision: b6fe406ad38d
Branch:   default
Author:   Pekka Klärck
Date:     Mon Jun 16 20:04:10 2014 UTC
Log: encoding sniffing: import ctypes only if needed (apparently it isn't always available w/ jython)
http://code.google.com/p/robotframework/source/detail?r=b6fe406ad38d

Modified:
 /src/robot/utils/encodingsniffer.py

=======================================
--- /src/robot/utils/encodingsniffer.py Mon Jun 16 19:59:29 2014 UTC
+++ /src/robot/utils/encodingsniffer.py Mon Jun 16 20:04:10 2014 UTC
@@ -12,7 +12,6 @@
 #  See the License for the specific language governing permissions and
 #  limitations under the License.

-from ctypes import cdll
 import sys
 import os

@@ -95,6 +94,7 @@


 def _get_code_page(method_name):
+    from ctypes import cdll
     try:
         method = getattr(cdll.kernel32, method_name)
     except TypeError:       # Sometimes occurs w/ IronPython (mainly on CI)

--

--- You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to robotframework-commit+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to