Skip to content

Commit 3f4c582

Browse files
authored
Merge pull request #147 from dflook/prefer-single-line
2 parents a0eae6e + 86ea914 commit 3f4c582

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+355
-17
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions

docs/source/conf.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,17 @@ def create_example(option):
4444
'rename_globals': False,
4545
'rename_locals': False,
4646
'remove_object_base': False,
47-
'convert_posargs_to_args': False
47+
'convert_posargs_to_args': False,
48+
'prefer_single_line': False
4849
}
4950

5051
options[option] = True
5152

52-
with open(f'transforms/{option}.py') as source:
53-
with open(f'transforms/{option}.min.py', 'w') as minified:
53+
with open(f'minification_options/{option}.py') as source:
54+
with open(f'minification_options/{option}.min.py', 'w') as minified:
5455
minified.write(minify(source.read(), filename=f'{option}.py', **options))
5556

56-
for file in os.listdir('transforms'):
57+
for file in os.listdir('minification_options'):
5758
if file.endswith('.py') and not file.endswith('.min.py'):
5859
create_example(file[:-len('.py')])
5960

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import requests,collections
2+
from typing import Dict,List,Optional
3+
import sys,os
File renamed without changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
SECONDS_IN_A_DAY=86400
2+
SECONDS_IN_A_WEEK=SECONDS_IN_A_DAY*7
File renamed without changes.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
def name(p1,p2,p_or_kw,*,kw):pass
2+
def name(p1,p2=None,p_or_kw=None,*,kw):pass
3+
def name(p1,p2=None,*,kw):pass
4+
def name(p1,p2=None):pass
5+
def name(p1,p2,p_or_kw):pass
6+
def name(p1,p2):pass

0 commit comments

Comments
 (0)