timeval: Import ctypes Python library within a try statement.
authorRyan Wilson <wryan@nicira.com>
Sat, 31 May 2014 00:36:46 +0000 (17:36 -0700)
committerAlex Wang <alexw@nicira.com>
Sat, 31 May 2014 00:37:10 +0000 (17:37 -0700)
commit813c5ba585f59eeffb81a185bb6e14f96bc47cc2
tree88c17aba3bbee28ad24f3798b3f851e1b84c007f
parent8396f8070bb35006fcd14486296fb203646a8dfa
timeval: Import ctypes Python library within a try statement.

Older versions of Python do not have ctypes as a default installed
package. This patch puts the 'import ctypes' statement inside a try
statement.

This fixes a bug introduced by commit 8396f (timeval: Use monotonic
time in OVS Python timeval library).

Signed-off-by: Ryan Wilson <wryan@nicira.com>
Acked-by: Alex Wang <alexw@nicira.com>
python/ovs/timeval.py