From e9b8c406d9f7ad3684db92bd2f6ebf00a23edd2a Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Wed, 21 Jan 2004 19:16:55 +0000 Subject: [PATCH] You don't need global unless you're reassigning the global name :) --- others/convertcore.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/others/convertcore.py b/others/convertcore.py index 2de9fd241..b4b18f8f2 100755 --- a/others/convertcore.py +++ b/others/convertcore.py @@ -451,12 +451,6 @@ def convert(num, unit1, unit2): num is the factor for the first unit. Raises UnitDataError for various errors. """ - - global fromUnit - global toUnit - global types - global unitsByType - fromUnit.update(unit1) toUnit.update(unit2) @@ -475,10 +469,6 @@ def units(type): """ Return comma separated string list of units of given type, or a list of types if the argument is not valid. """ - - global types - global unitsByType - if type in types: return '%s units: %s' % (type, ', '.join(unitsByType[type])) else: