From aac94a8d89588d825e7946a36d0f3d5699ce1ade Mon Sep 17 00:00:00 2001 From: david-sarah Date: Sun, 23 May 2010 15:11:57 -0700 Subject: [PATCH] Suppress 'integer argument expected, got float' DeprecationWarning everywhere --- src/allmydata/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/allmydata/__init__.py b/src/allmydata/__init__.py index db62dd26..1f9a265b 100644 --- a/src/allmydata/__init__.py +++ b/src/allmydata/__init__.py @@ -35,6 +35,12 @@ finally: warnings.filters.pop() warnings.filters.pop() + +warnings.filterwarnings("ignore", category=DeprecationWarning, + message="integer argument expected, got float", + append=True) + + __version__ = "unknown" try: from allmydata._version import __version__ -- 2.45.2