mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-02 05:56:04 -04:00
PEP8
This commit is contained in:
parent
6bc9edd8b2
commit
0bfa78b39b
6 changed files with 2 additions and 13 deletions
|
@ -17,9 +17,7 @@
|
|||
import sys
|
||||
sys.dont_write_bytecode = True
|
||||
|
||||
from synapse.storage import (
|
||||
prepare_database, UpgradeDatabaseException,
|
||||
)
|
||||
from synapse.storage import UpgradeDatabaseException
|
||||
from synapse.storage.engines import create_engine
|
||||
|
||||
from synapse.server import HomeServer
|
||||
|
@ -60,7 +58,6 @@ import os
|
|||
import re
|
||||
import resource
|
||||
import subprocess
|
||||
import sqlite3
|
||||
import yaml
|
||||
|
||||
|
||||
|
@ -322,7 +319,7 @@ def change_resource_limit(soft_file_no):
|
|||
resource.setrlimit(resource.RLIMIT_NOFILE, (soft_file_no, hard))
|
||||
|
||||
logger.info("Set file limit to: %d", soft_file_no)
|
||||
except ( ValueError, resource.error) as e:
|
||||
except (ValueError, resource.error) as e:
|
||||
logger.warn("Failed to set file limit: %s", e)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue