mirror of
https://github.com/google/mozc-devices.git
synced 2025-11-08 16:53:28 +03:00
Move filterwarnings to the top and surpress FutureWarning too
This commit is contained in:
@@ -16,6 +16,12 @@
|
||||
# limitations under the License.
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
# Surpress warnings. Please unvail these warnings when development.
|
||||
import warnings
|
||||
warnings.filterwarnings("ignore", category=RuntimeWarning)
|
||||
warnings.filterwarnings("ignore", category=FutureWarning)
|
||||
|
||||
from nazoru.led import LED_BLUE, LED_RED, LED_CHASSIS
|
||||
import time
|
||||
LED_RED.blink(1)
|
||||
@@ -23,9 +29,6 @@ LED_CHASSIS.on()
|
||||
time.sleep(1)
|
||||
LED_CHASSIS.off()
|
||||
|
||||
import warnings
|
||||
warnings.filterwarnings("ignore", category=RuntimeWarning)
|
||||
|
||||
import argparse
|
||||
import os
|
||||
from nazoru import get_default_graph_path
|
||||
|
||||
Reference in New Issue
Block a user