summaryrefslogtreecommitdiff
path: root/jfr_playoff/filemanager.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-08-01 14:06:25 +0200
committeremkael <emkael@tlen.pl>2017-08-01 14:06:25 +0200
commitca6c87f457f49cf33f357984d7642b1c83a0eefb (patch)
tree52cb557a89f7819a844ee394b1c0ccadbb52c607 /jfr_playoff/filemanager.py
parentde7260322d60eeb5fd0afa57ec2e250ce7f52261 (diff)
Code formatting
Diffstat (limited to 'jfr_playoff/filemanager.py')
-rw-r--r--jfr_playoff/filemanager.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/jfr_playoff/filemanager.py b/jfr_playoff/filemanager.py
index 03dbaf7..5cd2a80 100644
--- a/jfr_playoff/filemanager.py
+++ b/jfr_playoff/filemanager.py
@@ -22,7 +22,6 @@ class PlayoffFileManager(object):
if path.startswith(self.output_path):
self.files.add(path.replace(self.output_path, ''))
-
def write_content(self, content):
output = open(self.output_file, 'w')
output.write(content.encode('utf8'))
@@ -33,16 +32,18 @@ class PlayoffFileManager(object):
def copy_scripts(self, script_path='sklady/playoff.js'):
script_output_path = os.path.join(self.output_path, script_path)
shutil.copy(
- unicode(os.path.join(os.path.dirname(__main__.__file__), 'playoff.js')),
- unicode(script_output_path)
- )
+ unicode(os.path.join(
+ os.path.dirname(__main__.__file__), 'playoff.js')),
+ unicode(script_output_path))
self.register_file(script_output_path)
return script_output_path
def send_files(self):
if self.goniec['enabled']:
try:
- content_lines = [self.output_path] + list(self.files) + ['bye', '']
+ content_lines = [self.output_path] + \
+ list(self.files) + \
+ ['bye', '']
print '\n'.join(content_lines)
goniec = socket.socket()
goniec.connect((self.goniec['host'], self.goniec['port']))