1 |
#! /usr/bin/env python |
#! /usr/bin/env python |
2 |
# |
# |
3 |
# Copyright (c) 2004 Theodore A. Roth |
# Copyright (c) 2004,2005 Theodore A. Roth |
4 |
# All rights reserved. |
# All rights reserved. |
5 |
# |
# |
6 |
# Redistribution and use in source and binary forms, with or without |
# Redistribution and use in source and binary forms, with or without |
280 |
n += 1 |
n += 1 |
281 |
continue |
continue |
282 |
try: |
try: |
283 |
name = re.sub('[/,-]', '', v[1].upper()) |
name = re.sub('[/-]', '', v[1].upper()) |
284 |
|
name = re.sub(',', ' ', name) |
285 |
name = re.sub(r'\s+', '_', name) |
name = re.sub(r'\s+', '_', name) |
286 |
if re.match('^[A-Z0-9_]+$', name): |
if re.match('^[A-Z0-9_]+$', name): |
287 |
pass |
pass |