Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def process_args(self, args):
command = 'svn st {}'.format(args.path)
process = subprocess.Popen(command,
shell=True,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE
)
lines = process.stdout.readlines()
for line in lines:
if line.startswith('?'):
command = 'svn add {}'.format(line.split()[-1])
systemtools.IOManager.spawn_subprocess(command)
"""
Tools for interacting with supriya via a web browser.
"""
from abjad.tools import systemtools
systemtools.ImportManager.import_structured_package(
__path__[0],
globals(),
)
def _attribute_manifest(self):
from abjad.tools import rhythmmakertools
from abjad.tools import systemtools
return systemtools.AttributeManifest(
systemtools.AttributeDetail(
name='duration_spelling_specifier',
command='dss',
editor=rhythmmakertools.DurationSpellingSpecifier,
),
# -*- encoding: utf-8 -*-
from abjad.tools import systemtools
systemtools.ImportManager.import_structured_package(
__path__[0],
globals(),
)
# -*- encoding: utf-8 -*-
from abjad.tools import systemtools
systemtools.ImportManager.import_structured_package(
__path__[0],
globals(),
package_root_name='abjad')
_documentation_section = 'core'
def __init__(self, *attribute_details):
from abjad.tools import systemtools
self._attribute_details = []
for attribute_detail in attribute_details:
if not isinstance(attribute_detail, systemtools.AttributeDetail):
attribute_detail = systemtools.AttributeDetail(
*attribute_detail)
self.attribute_details.append(attribute_detail)
def __format__(self, format_specification=''):
r'''Formats specification interface.
Set `format_specification` to `''` or `'format'`.
Interprets `''` equal to `'storage'`.
Returns string.
'''
from abjad.tools import systemtools
if format_specification in ('', 'storage'):
return systemtools.StorageFormatManager.get_storage_format(self)
return str(self)
from abjad.tools import systemtools
systemtools.ImportManager.import_structured_package(
__path__[0],
globals(),
)
_documentation_section = 'unstable'
def _attribute_manifest(self):
from abjad.tools import systemtools
return systemtools.AttributeManifest(
markuptools.MarkupInventory,
)
def _attribute_manifest(self):
from abjad.tools import systemtools
from scoremanager import idetools
return systemtools.AttributeManifest(
systemtools.AttributeDetail(
name='can_split',
display_string='can split',
command='cp',
editor=idetools.getters.get_boolean,
),
systemtools.AttributeDetail(
name='minimum_duration',
display_string='minimum duration',
command='md',
editor=idetools.getters.get_duration,
),
systemtools.AttributeDetail(
name='labels',
display_string='labels',
command='l',