remove unnecessary global statements

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3119 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2006-04-08 09:02:14 +00:00
parent 02ecf152c6
commit 31e853e0d7

View file

@ -50,7 +50,6 @@ def add (msgid, transtr, fuzzy):
"""
Add a non-fuzzy translation to the dictionary.
"""
global MESSAGES
if not fuzzy and transtr and not transtr.startswith('\0'):
MESSAGES[msgid] = transtr
@ -59,7 +58,6 @@ def generate ():
"""
Return the generated output.
"""
global MESSAGES
keys = MESSAGES.keys()
# the keys are sorted in the .mo file
keys.sort()
@ -102,8 +100,7 @@ def generate ():
def make (filename, outfile):
ID = 1
STR = 2
global MESSAGES
MESSAGES = {}
MESSAGES.clear()
# Compute .mo name from .po name and arguments
if filename.endswith('.po'):