Permalink
Browse files

move warnings import to the top so we suppress DeprecationWarnings

  • Loading branch information...
1 parent dd545fd commit 3cd48305b664991f14da0bbfdd847ed95052c5d0 @throughnothing committed Aug 3, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 plugin/vimchat.vim
View
@@ -33,6 +33,9 @@
python <<EOF
try:
+ import warnings
+ warnings.filterwarnings('ignore', category=DeprecationWarning)
+
from collections import defaultdict
from ConfigParser import RawConfigParser
import os
@@ -42,10 +45,8 @@ try:
import threading
import time
import vim
- import warnings
import xmpp
- warnings.filterwarnings('ignore', category=DeprecationWarning)
try:
import simplejson as json

0 comments on commit 3cd4830

Please sign in to comment.