mirror of
http://aero2k.de/t/repos/urlbot-native.git
synced 2017-09-06 15:25:38 +02:00
fixed some code style complaints
This commit is contained in:
@@ -64,7 +64,7 @@ def extract_title(url):
|
|||||||
if 'text/' != headers['content-type'][:len('text/')]:
|
if 'text/' != headers['content-type'][:len('text/')]:
|
||||||
return (1, headers['content-type'])
|
return (1, headers['content-type'])
|
||||||
|
|
||||||
result = re.match(r'.*?<title.*?>(.*?)</title>.*?', html, re.S|re.M|re.IGNORECASE)
|
result = re.match(r'.*?<title.*?>(.*?)</title>.*?', html, re.S | re.M | re.IGNORECASE)
|
||||||
if result:
|
if result:
|
||||||
return (0, result.groups()[0])
|
return (0, result.groups()[0])
|
||||||
else:
|
else:
|
||||||
@@ -223,7 +223,7 @@ def parse_delete(filepath):
|
|||||||
os.remove(filepath) # probably better crash here
|
os.remove(filepath) # probably better crash here
|
||||||
|
|
||||||
def print_version_git():
|
def print_version_git():
|
||||||
import subprocess, sys
|
import subprocess
|
||||||
|
|
||||||
cmd = ['git', 'log', '-n', '1', '--oneline', '--abbrev-commit']
|
cmd = ['git', 'log', '-n', '1', '--oneline', '--abbrev-commit']
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user