From 9351d0e4181924c3f72be24081fc7af027aa41f7 Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Mon, 24 Sep 2012 22:15:09 +0200 Subject: pywizards: get rid of import * (3) Change-Id: Ibf7c6fc7863b6eccb28e5396587f2ec00ffcbe43 --- wizards/com/sun/star/wizards/common/ConfigSet.py | 2 +- wizards/com/sun/star/wizards/common/Configuration.py | 3 ++- wizards/com/sun/star/wizards/common/FileAccess.py | 2 +- wizards/com/sun/star/wizards/common/NumberFormatter.py | 4 ++-- wizards/com/sun/star/wizards/common/PropertySetHelper.py | 3 +-- wizards/com/sun/star/wizards/common/Resource.py | 6 ------ wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.py | 2 +- wizards/com/sun/star/wizards/ui/ControlScroller.py | 1 - wizards/com/sun/star/wizards/ui/ImageList.py | 2 +- wizards/com/sun/star/wizards/ui/PathSelection.py | 4 ++-- 10 files changed, 11 insertions(+), 18 deletions(-) (limited to 'wizards') diff --git a/wizards/com/sun/star/wizards/common/ConfigSet.py b/wizards/com/sun/star/wizards/common/ConfigSet.py index b5ff83618795..00b333168cad 100644 --- a/wizards/com/sun/star/wizards/common/ConfigSet.py +++ b/wizards/com/sun/star/wizards/common/ConfigSet.py @@ -16,7 +16,7 @@ # the License at http://www.apache.org/licenses/LICENSE-2.0 . # import traceback -from .ConfigNode import * +from .ConfigNode import ConfigNode from .Configuration import Configuration class ConfigSet(ConfigNode): diff --git a/wizards/com/sun/star/wizards/common/Configuration.py b/wizards/com/sun/star/wizards/common/Configuration.py index d76cad4602be..8f505582c662 100644 --- a/wizards/com/sun/star/wizards/common/Configuration.py +++ b/wizards/com/sun/star/wizards/common/Configuration.py @@ -15,9 +15,10 @@ # except in compliance with the License. You may obtain a copy of # the License at http://www.apache.org/licenses/LICENSE-2.0 . # +import uno import traceback from .PropertyNames import PropertyNames -from .Helper import * +from .Helper import Helper ''' This class gives access to the OO configuration api. diff --git a/wizards/com/sun/star/wizards/common/FileAccess.py b/wizards/com/sun/star/wizards/common/FileAccess.py index 6fa8493b11de..6b91bc4cbf48 100644 --- a/wizards/com/sun/star/wizards/common/FileAccess.py +++ b/wizards/com/sun/star/wizards/common/FileAccess.py @@ -18,7 +18,7 @@ import traceback import types from os import path as osPath -from .NoValidPathException import * +from .NoValidPathException import NoValidPathException from com.sun.star.ucb import CommandAbortedException from com.sun.star.awt.VclWindowPeerAttribute import OK, YES_NO diff --git a/wizards/com/sun/star/wizards/common/NumberFormatter.py b/wizards/com/sun/star/wizards/common/NumberFormatter.py index 1a8d3a60a640..67d9d987d2fd 100644 --- a/wizards/com/sun/star/wizards/common/NumberFormatter.py +++ b/wizards/com/sun/star/wizards/common/NumberFormatter.py @@ -16,9 +16,9 @@ # the License at http://www.apache.org/licenses/LICENSE-2.0 . # import traceback -import uno from com.sun.star.lang import Locale -from com.sun.star.util.NumberFormat import DATE, LOGICAL, DATETIME, TEXT, NUMBER +from com.sun.star.util.NumberFormat import \ + DATE, LOGICAL, DATETIME, TEXT, NUMBER class NumberFormatter(object): diff --git a/wizards/com/sun/star/wizards/common/PropertySetHelper.py b/wizards/com/sun/star/wizards/common/PropertySetHelper.py index 3a2be35b24fc..c7d75a569b35 100644 --- a/wizards/com/sun/star/wizards/common/PropertySetHelper.py +++ b/wizards/com/sun/star/wizards/common/PropertySetHelper.py @@ -15,8 +15,7 @@ # except in compliance with the License. You may obtain a copy of # the License at http://www.apache.org/licenses/LICENSE-2.0 . # -from .DebugHelper import * -from .DebugHelper import * +from .DebugHelper import DebugHelper class PropertySetHelper(object): diff --git a/wizards/com/sun/star/wizards/common/Resource.py b/wizards/com/sun/star/wizards/common/Resource.py index 8d6837a1a681..68f60a767522 100644 --- a/wizards/com/sun/star/wizards/common/Resource.py +++ b/wizards/com/sun/star/wizards/common/Resource.py @@ -22,12 +22,6 @@ from .SystemDialog import SystemDialog from com.sun.star.awt.VclWindowPeerAttribute import OK class Resource(object): - ''' - Creates a new instance of Resource - @param _xMSF - @param _Unit - @param _Module - ''' @classmethod def __init__(self, _xMSF, _Module): diff --git a/wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.py b/wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.py index e55f01a70cd9..e008aeb6011d 100644 --- a/wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.py +++ b/wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.py @@ -182,7 +182,7 @@ class FaxWizardDialogImpl(FaxWizardDialog): (self.chkUseCommunicationType.State is not 0) self.myFaxDoc.killEmptyFrames() self.bSaveSuccess = OfficeDocument.store(self.xMSF, - TextDocument.xTextDocument, self.sPath, "writer8_template") + TextDocument.xTextDocument, self.sPath, "writer8_template") if self.bSaveSuccess: self.saveConfiguration() xIH = self.xMSF.createInstance( \ diff --git a/wizards/com/sun/star/wizards/ui/ControlScroller.py b/wizards/com/sun/star/wizards/ui/ControlScroller.py index e89ac61bfbcb..c38a4ba86fbc 100644 --- a/wizards/com/sun/star/wizards/ui/ControlScroller.py +++ b/wizards/com/sun/star/wizards/ui/ControlScroller.py @@ -15,7 +15,6 @@ # except in compliance with the License. You may obtain a copy of # the License at http://www.apache.org/licenses/LICENSE-2.0 . # -import uno import traceback from wizards.common.Desktop import Desktop from wizards.common.PropertyNames import PropertyNames diff --git a/wizards/com/sun/star/wizards/ui/ImageList.py b/wizards/com/sun/star/wizards/ui/ImageList.py index 1a6b8ddbc550..b743afae4a25 100644 --- a/wizards/com/sun/star/wizards/ui/ImageList.py +++ b/wizards/com/sun/star/wizards/ui/ImageList.py @@ -17,7 +17,7 @@ # from threading import RLock from .PeerConfig import PeerConfig -from ..common.PropertyNames import * +from ..common.PropertyNames import PropertyNames from ..common.HelpIds import HelpIds from ..common.Helper import Helper diff --git a/wizards/com/sun/star/wizards/ui/PathSelection.py b/wizards/com/sun/star/wizards/ui/PathSelection.py index 37040a6a8a30..6d5762d7910d 100644 --- a/wizards/com/sun/star/wizards/ui/PathSelection.py +++ b/wizards/com/sun/star/wizards/ui/PathSelection.py @@ -16,8 +16,8 @@ # the License at http://www.apache.org/licenses/LICENSE-2.0 . # import traceback -from ..common.PropertyNames import * -from ..common.FileAccess import * +from ..common.PropertyNames import PropertyNames +from ..common.FileAccess import FileAccess from ..common.SystemDialog import SystemDialog class PathSelection(object): -- cgit