Skip to content

Commit

Permalink
Move filterwarnings to the top and surpress FutureWarning too
Browse files Browse the repository at this point in the history
  • Loading branch information
Makoto Shimazu committed Sep 11, 2018
1 parent 8d3fb5c commit 0fa69ac
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions mozc-nazoru/bin/nazoru-input
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,19 @@
# 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)
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
Expand Down

0 comments on commit 0fa69ac

Please sign in to comment.