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

Commit8566890

Browse files
committed
Remove old code
1 parent317fc79 commit8566890

File tree

2 files changed

+1
-128
lines changed

2 files changed

+1
-128
lines changed

‎core/utils.py‎

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,15 @@
44
importos
55
importre
66
importsys
7-
importthreading
87
importtraceback
9-
fromfunctoolsimportlru_cache
108
fromioimportStringIO
119
fromitertoolsimportcombinations
1210
fromrandomimportshuffle
1311
fromtypesimportModuleType
1412
fromtypingimportUnion
1513

1614
importpygments
17-
fromlittleutilsimportstrip_required_prefix,strip_required_suffix,withattrs
15+
fromlittleutilsimportstrip_required_prefix,strip_required_suffix
1816
frompygments.formattersimportHtmlFormatter
1917
frompygments.lexersimportget_lexer_by_name
2018
frompygments.stylesimportget_style_by_name
@@ -47,13 +45,6 @@ def stub_module(name):
4745
))
4846

4947

50-
defassign(**attrs):
51-
defdecorator(f):
52-
returnwithattrs(f,**attrs)
53-
54-
returndecorator
55-
56-
5748
defno_weird_whitespace(string):
5849
spaces=set(re.findall(r"\s",string))
5950
assertspaces<= {" ","\n"},spaces
@@ -162,31 +153,6 @@ def format_exception_string():
162153
return''.join(traceback.format_exception_only(*sys.exc_info()[:2]))
163154

164155

165-
defrow_to_dict(row):
166-
d=row.__dict__.copy()
167-
deld["_sa_instance_state"]
168-
returnd
169-
170-
171-
defrows_to_dicts(rows):
172-
return [row_to_dict(row)forrowinrows]
173-
174-
175-
defthread_separate_lru_cache(*cache_args,**cache_kwargs):
176-
defdecorator(func):
177-
@lru_cache(*cache_args,**cache_kwargs)
178-
defcached(_thread_id,*args,**kwargs):
179-
returnfunc(*args,**kwargs)
180-
181-
@functools.wraps(func)
182-
defwrapper(*args,**kwargs):
183-
returncached(threading.get_ident(),*args,**kwargs)
184-
185-
returnwrapper
186-
187-
returndecorator
188-
189-
190156
defis_valid_syntax(text):
191157
try:
192158
ast.parse(text)

‎core/workers/master.py‎

Lines changed: 0 additions & 93 deletions
This file was deleted.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp