mwxlib 1.4.5__py3-none-any.whl → 1.4.6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of mwxlib might be problematic. Click here for more details.

mwx/framework.py CHANGED
@@ -1,7 +1,7 @@
1
1
  #! python3
2
2
  """mwxlib framework.
3
3
  """
4
- __version__ = "1.4.5"
4
+ __version__ = "1.4.6"
5
5
  __author__ = "Kazuya O'moto <komoto@jeol.co.jp>"
6
6
 
7
7
  from contextlib import contextmanager
mwx/nutshell.py CHANGED
@@ -32,19 +32,6 @@ from .utilus import split_words, split_parts, split_tokens, find_modules
32
32
  from .framework import CtrlInterface, AuiNotebook, Menu
33
33
 
34
34
 
35
- ## Monkey-patch for wx.py.introspect.getRoot with terminator '('.
36
- getRoot = introspect.getRoot
37
- def _getRoot(command, terminator=None):
38
- """Return the rightmost root portion of an arbitrary Python command."""
39
- if terminator == '(':
40
- words = split_words(command, reverse=1)
41
- for word in words:
42
- if word == terminator:
43
- return next(words, '')
44
- return getRoot(command, terminator) # original
45
- introspect.getRoot = _getRoot
46
-
47
-
48
35
  ## URL pattern (flag = re.M | re.A)
49
36
  ## url_re = r"https?://[\w/:%#$&?()~.=+-]+"
50
37
  url_re = r"https?://[\w/:%#$&?!@~.,;=+-]+" # excluding ()
mwx/utilus.py CHANGED
@@ -999,13 +999,13 @@ def get_fullargspec(f):
999
999
  ## ...(details)...
1000
1000
  ## ```
1001
1001
  doc = inspect.getdoc(f)
1002
- if doc is None:
1003
- return None
1004
- m = re.match(r"(\w+)\s*\((.*?)\)", doc.strip(), re.S)
1005
- if not m:
1006
- return None
1002
+ for word in split_parts(doc or ''): # Search pattern for `func(argspec)`.
1003
+ if word.startswith('('):
1004
+ argspec = word[1:-1]
1005
+ break
1007
1006
  else:
1008
- name, argspec = m.groups()
1007
+ return None # no argument spec information
1008
+ if argspec:
1009
1009
  argparts = ['']
1010
1010
  for part in split_parts(argspec): # Separate argument parts with commas.
1011
1011
  if not part.strip():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: mwxlib
3
- Version: 1.4.5
3
+ Version: 1.4.6
4
4
  Summary: A wrapper of matplotlib and wxPython (phoenix)
5
5
  Home-page: https://github.com/komoto48g/mwxlib
6
6
  Author: Kazuya O'moto
@@ -1,16 +1,16 @@
1
1
  mwx/__init__.py,sha256=pS7ZG8QKRypiFFiaWAq_opBB6I_1viZ0zUMk2TbjzE0,667
2
2
  mwx/bookshelf.py,sha256=MXjrm_ryRGHvOFKu8wb10qz_oka70xW2yFbYjBMYfns,8140
3
3
  mwx/controls.py,sha256=RssTROprNfgnRMiWVOoSSd8Fy0qwZ8DCrYM2f5Wgr4E,48610
4
- mwx/framework.py,sha256=DO2VrF_SOS6Gdr22PZclHChWr2oRQfW__7-1xxr97Cc,76830
4
+ mwx/framework.py,sha256=hP2mhnYPOrSVFvA3CgoOR9-axWx_WLd83aXioUHodEk,76830
5
5
  mwx/graphman.py,sha256=_8_DaG3qhhZByoh5wboyYQlAsm7GlPoR8wT-RNMx4Cw,70627
6
6
  mwx/images.py,sha256=oxCn0P-emiWujSS2gUgU5TUnr5cPjix2jBcjOBDr24I,48701
7
7
  mwx/matplot2.py,sha256=Htwegq6N5G7oKSRCuajik5Dixd93i8PKVbkL7Azy99M,33150
8
8
  mwx/matplot2g.py,sha256=4BBHlvfhg1796hu1nTCsTA82YRkZhwUnfcHCBf5ZGO8,65083
9
9
  mwx/matplot2lg.py,sha256=cb0EZXivccDQu4oFj5ddSUF9pEE4f5UuFJJK2ELItww,27404
10
10
  mwx/mgplt.py,sha256=8mXbHpCmm7lz3XbAxOg7IVC7DaSGBEby1UfTlMl9kjk,5604
11
- mwx/nutshell.py,sha256=4GDfGCHvHptpLqJIUVAfCMyI6V2KFcgji8S0PWMviL0,142385
11
+ mwx/nutshell.py,sha256=TNaZbMQcvSKDSHDnw3P8rpMM2yNG0HbVOej52L0EZgY,141903
12
12
  mwx/testsuite.py,sha256=Zk75onPSEn2tf0swS3l-vIn6yTXGB7allIyvJsPHj20,1229
13
- mwx/utilus.py,sha256=iAqtDbkVuFsSuS71leUd-mHH0ETRQ3GLnII7O2wcw3I,38065
13
+ mwx/utilus.py,sha256=ObXYWsDVn5DmjvwVQgP2HGAhrdxlDrwL7g9pMCDbU7U,38127
14
14
  mwx/wxmon.py,sha256=yzWqrbY6LzpfRwQeytYUeqFhFuLVm_XEvrVAL_k0HBQ,12756
15
15
  mwx/wxpdb.py,sha256=ih2iLcOgYnUX849YXO4niIYue6amuoG7nWdpr-X1jFw,18839
16
16
  mwx/wxwil.py,sha256=hhyB1lPrF9ixeObxCOKQv0Theu-B-kpJg_yVU3EGSNg,5406
@@ -22,7 +22,7 @@ mwx/plugins/frame_listview.py,sha256=gowjQ-ARNonMkDSXkQgPKq4U9YBJ-vQ0jK2krBVOdCs
22
22
  mwx/plugins/line_profile.py,sha256=zzm6_7lnAnNepLbh07ordp3nRWDFQJtu719ZVjrVf8s,819
23
23
  mwx/py/__init__.py,sha256=xykgfOytOwNuvXsfkLoumFZSTN-iBsHOjczYXngjmUE,12
24
24
  mwx/py/filling.py,sha256=fumUG1F5M9TL-Dfqni4G85uk7TmvnUunTbdcPDV0vfo,16857
25
- mwxlib-1.4.5.dist-info/METADATA,sha256=004S_ou1NJHL8BynaX391SwQ5vamthk4oifMNz8yUrE,7433
26
- mwxlib-1.4.5.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
27
- mwxlib-1.4.5.dist-info/top_level.txt,sha256=SI1Mh118AstnUFGPNq5aMNKiAnVNmZk1S9Ij-OwAEpY,4
28
- mwxlib-1.4.5.dist-info/RECORD,,
25
+ mwxlib-1.4.6.dist-info/METADATA,sha256=hqiNPf-eNSU1H6H5huSCCToKcRvpXYWipmwzJc1r_xw,7433
26
+ mwxlib-1.4.6.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
27
+ mwxlib-1.4.6.dist-info/top_level.txt,sha256=SI1Mh118AstnUFGPNq5aMNKiAnVNmZk1S9Ij-OwAEpY,4
28
+ mwxlib-1.4.6.dist-info/RECORD,,
File without changes