Further isort implementation
This commit is contained in:
		@@ -15,12 +15,11 @@
 | 
				
			|||||||
# You should have received a copy of the GNU Affero General Public License along
 | 
					# You should have received a copy of the GNU Affero General Public License along
 | 
				
			||||||
# with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
					# with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import sys
 | 
					 | 
				
			||||||
import os.path
 | 
					 | 
				
			||||||
import argparse
 | 
					import argparse
 | 
				
			||||||
 | 
					import os.path
 | 
				
			||||||
 | 
					import sys
 | 
				
			||||||
 | 
					
 | 
				
			||||||
from .morss import FeedFetch, FeedGather, FeedFormat
 | 
					from .morss import FeedFetch, FeedFormat, FeedGather, Options
 | 
				
			||||||
from .morss import Options
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def cli_app():
 | 
					def cli_app():
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -15,10 +15,11 @@
 | 
				
			|||||||
# You should have received a copy of the GNU Affero General Public License along
 | 
					# You should have received a copy of the GNU Affero General Public License along
 | 
				
			||||||
# with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
					# with this program. If not, see <https://www.gnu.org/licenses/>.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					import re
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import lxml.etree
 | 
					import lxml.etree
 | 
				
			||||||
import lxml.html
 | 
					import lxml.html
 | 
				
			||||||
from bs4 import BeautifulSoup
 | 
					from bs4 import BeautifulSoup
 | 
				
			||||||
import re
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def parse(data, encoding=None):
 | 
					def parse(data, encoding=None):
 | 
				
			||||||
@@ -352,6 +353,7 @@ def get_article(data, url=None, encoding_in=None, encoding_out='unicode', debug=
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
if __name__ == '__main__':
 | 
					if __name__ == '__main__':
 | 
				
			||||||
    import sys
 | 
					    import sys
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    from . import crawler
 | 
					    from . import crawler
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    req = crawler.adv_get(sys.argv[1] if len(sys.argv) > 1 else 'https://morss.it')
 | 
					    req = crawler.adv_get(sys.argv[1] if len(sys.argv) > 1 else 'https://morss.it')
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user