[dia] simplified regex for hex
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] simplified regex for hex
- Date: Wed, 6 Oct 2010 22:00:09 +0000 (UTC)
commit 90673c73e131fe31a3dc6a5b7320928ce650864a
Author: Hans Breuer <hans breuer org>
Date: Fri Oct 1 21:10:28 2010 +0200
simplified regex for hex
plug-ins/python/wdeps.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/python/wdeps.py b/plug-ins/python/wdeps.py
index 988bb84..4133592 100644
--- a/plug-ins/python/wdeps.py
+++ b/plug-ins/python/wdeps.py
@@ -152,9 +152,9 @@ def GetDepsWin32 (sFrom, dAll, nMaxDepth, nDepth=0) :
else :
# import by name
# The system dlls seem to follow a diferent pattern (or is this for know-dlls? Delay load?) thus (?:[0123456789ABCDEF]{8}[ ]+)?
- r2 = re.match ("^[ ]+(?:[0123456789ABCDEF]{8}[ ]+)?[0123456789ABCDEF]{1,5}[ ]+([\w ?$]+)$", s)
+ r2 = re.match ("^[ ]+(?:[\dA-F]{8}[ ]+)?[\dA-F]{1,5}[ ]+([\w ?$]+)$", s)
if not r2 :
- r2 = re.match ("^[ ]+(?:[0123456789ABCDEF]{8}[ ]+)?Ordinal[ ]+([1234567890]+)$", s)
+ r2 = re.match ("^[ ]+(?:[\dA-F]{8}[ ]+)?Ordinal[ ]+([\d]+)$", s)
if r2 :
arr.append (r2.group(1))
elif s[:-1] == "" and name != None and len(arr) > 0 :
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]