Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfd4f032

Browse files
ambvgsnedders
andauthored
Constant phases (#567)
* Get rid of getPhasesThis added a fair bit of complexity, and notable made the Phase classesdynamically generated.However, by doing this, we no longer include "process thetoken using the rules for" phases in the debug log.Co-authored-by: Sam Sneddon <me@gsnedders.com>
1 parent82c2599 commitfd4f032

File tree

3 files changed

+2172
-2190
lines changed

3 files changed

+2172
-2190
lines changed

‎html5lib/_utils.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -145,15 +145,3 @@ def moduleFactory(baseModule, *args, **kwargs):
145145
returnmod
146146

147147
returnmoduleFactory
148-
149-
150-
defmemoize(func):
151-
cache= {}
152-
153-
defwrapped(*args,**kwargs):
154-
key= (tuple(args),tuple(kwargs.items()))
155-
ifkeynotincache:
156-
cache[key]=func(*args,**kwargs)
157-
returncache[key]
158-
159-
returnwrapped

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp