From 6b956230dba5f60e615bea24d080e845e3bcb48c Mon Sep 17 00:00:00 2001 From: stefan Date: Sun, 22 Feb 2009 01:49:15 +0000 Subject: [PATCH] Move 'UsageError' definition from roundup.admin to roundup.exceptions. git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4158 57a73879-2fb5-44c3-a270-3262357dd7e2 --- roundup/admin.py | 4 +--- roundup/exceptions.py | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/roundup/admin.py b/roundup/admin.py index 51695e2..653daf3 100644 --- a/roundup/admin.py +++ b/roundup/admin.py @@ -29,6 +29,7 @@ from roundup import __version__ as roundup_version import roundup.instance from roundup.configuration import CoreConfig from roundup.i18n import _ +from roundup.exception import UsageError class CommandDict(UserDict.UserDict): '''Simple dictionary that lets us do lookups using partial keys. @@ -49,9 +50,6 @@ class CommandDict(UserDict.UserDict): raise KeyError, key return l -class UsageError(ValueError): - pass - class AdminTool: ''' A collection of methods used in maintaining Roundup trackers. diff --git a/roundup/exceptions.py b/roundup/exceptions.py index 27cc1ef..a9ba2cf 100644 --- a/roundup/exceptions.py +++ b/roundup/exceptions.py @@ -16,4 +16,7 @@ class Reject(Exception): ''' pass +class UsageError(ValueError): + pass + # vim: set filetype=python ts=4 sw=4 et si -- 2.30.2