diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/rqalpha/core/strategy_universe.py b/rqalpha/core/strategy_universe.py index <HASH>..<HASH> 100644 --- a/rqalpha/core/strategy_universe.py +++ b/rqalpha/core/strategy_universe.py @@ -27,6 +27,9 @@ class StrategyUniverse(object): def __init__(self): self._set = set() Environment.get_in...
all instruments in position have to be in universe
py
diff --git a/master/buildbot/locks.py b/master/buildbot/locks.py index <HASH>..<HASH> 100644 --- a/master/buildbot/locks.py +++ b/master/buildbot/locks.py @@ -144,7 +144,7 @@ class BaseLock: num_excl, num_counting = self._claimed_excl, self._claimed_counting for i, (w_owner, w_access, d) in enumerate(...
locks: Don't rely on counting count always increasing by one
py
diff --git a/ReText/tablemode.py b/ReText/tablemode.py index <HASH>..<HASH> 100644 --- a/ReText/tablemode.py +++ b/ReText/tablemode.py @@ -58,12 +58,11 @@ def _getTableLines(doc, pos, markupClass): row.separatorline = True row.paddingchar = '-' elif markupClass == ReStructuredTextMarkup: - for i, row in en...
Do not assume height of table rows are always odd Should prevent tablemode errors when using rows > 1 line. Note: Does not solve problem when cells span multiple rows.
py
diff --git a/great_expectations/render/renderer/content_block/table_content_block.py b/great_expectations/render/renderer/content_block/table_content_block.py index <HASH>..<HASH> 100644 --- a/great_expectations/render/renderer/content_block/table_content_block.py +++ b/great_expectations/render/renderer/content_block/...
Fix: handle missing values in the results of expect_column_values_to_not_be_null without failing
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -5,12 +5,12 @@ from distutils.core import setup setup( name = 'pygame_vkeyboard', packages = ['pygame_vkeyboard'], # this must be the same as the name above - version = '1.0', + version = '1.1', descripti...
Updates to <I> for distribution
py
diff --git a/telemetry/telemetry/internal/backends/chrome/lacros_browser_backend.py b/telemetry/telemetry/internal/backends/chrome/lacros_browser_backend.py index <HASH>..<HASH> 100644 --- a/telemetry/telemetry/internal/backends/chrome/lacros_browser_backend.py +++ b/telemetry/telemetry/internal/backends/chrome/lacros_...
Increase Lacros tracing buffer size for Telemetry tests. This eliminates TraceBufferDataLossExceptions. Tested: <URL>
py
diff --git a/zipline/data/resample.py b/zipline/data/resample.py index <HASH>..<HASH> 100644 --- a/zipline/data/resample.py +++ b/zipline/data/resample.py @@ -521,7 +521,7 @@ class MinuteResampleSessionBarReader(SessionBarReader): sessions = self._calendar.sessions_in_range(start_dt, end_dt) m_closes ...
PERF: Only get session close in MinuteResampleSessionBarReader We only need the close, not the open.
py
diff --git a/dftimewolf/lib/containers/containers.py b/dftimewolf/lib/containers/containers.py index <HASH>..<HASH> 100644 --- a/dftimewolf/lib/containers/containers.py +++ b/dftimewolf/lib/containers/containers.py @@ -612,3 +612,11 @@ class OsqueryResult(interface.AttributeContainer): self.description = descripti...
Add __eq__ and __str__ methods to OsqueryResults container (#<I>)
py
diff --git a/tests/constants_test.py b/tests/constants_test.py index <HASH>..<HASH> 100644 --- a/tests/constants_test.py +++ b/tests/constants_test.py @@ -1,5 +1,7 @@ import unittest +from nose.tools import eq_ + from mtglib.constants import base_url, card_flags class DescribeConstants(unittest.TestCase): @@ -7,...
Use helper function for testing equality.
py
diff --git a/AegeanTools/source_finder.py b/AegeanTools/source_finder.py index <HASH>..<HASH> 100755 --- a/AegeanTools/source_finder.py +++ b/AegeanTools/source_finder.py @@ -18,6 +18,7 @@ from scipy.special import erf from scipy.ndimage import label, find_objects from scipy.ndimage.filters import minimum_filter, max...
pull bkg/rms changes from master branch
py
diff --git a/ncclient/operations/rpc.py b/ncclient/operations/rpc.py index <HASH>..<HASH> 100644 --- a/ncclient/operations/rpc.py +++ b/ncclient/operations/rpc.py @@ -296,7 +296,6 @@ class RPC(object): self._event = Event() self._device_handler = device_handler self.logger = SessionLoggerAdap...
first draft of SAX parser implementation
py
diff --git a/salt/modules/debconfmod.py b/salt/modules/debconfmod.py index <HASH>..<HASH> 100644 --- a/salt/modules/debconfmod.py +++ b/salt/modules/debconfmod.py @@ -22,6 +22,7 @@ def __virtual__(): return False if salt.utils.which('debconf-get-selections') is None: + log.exception('Package debc...
Added log when debconf-utils is not installed on a Debian system.
py
diff --git a/ecommerce_worker/configuration/base.py b/ecommerce_worker/configuration/base.py index <HASH>..<HASH> 100644 --- a/ecommerce_worker/configuration/base.py +++ b/ecommerce_worker/configuration/base.py @@ -25,6 +25,8 @@ CELERY_IMPORTS = ( 'ecommerce_worker.sailthru.v1.tasks', ) +DEFAULT_PRIORITY_QUEUE ...
ecom queue settings (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -60,7 +60,8 @@ setup( # core dependencies 'decorator', 'httplib2', - 'importlib', + # only for Python 2.6 + #'importlib', # for the tests: 'pyasn1', 'p...
Difference between python <I> and <I>
py
diff --git a/squad/settings.py b/squad/settings.py index <HASH>..<HASH> 100644 --- a/squad/settings.py +++ b/squad/settings.py @@ -381,10 +381,11 @@ if SENTRY_DSN: try: import sentry_sdk from sentry_sdk.integrations.django import DjangoIntegration + from sentry_sdk.integrations.celery impo...
settings: add CeleryIntegration to sentry
py
diff --git a/spinoff/actor/cell.py b/spinoff/actor/cell.py index <HASH>..<HASH> 100644 --- a/spinoff/actor/cell.py +++ b/spinoff/actor/cell.py @@ -115,7 +115,9 @@ class _BaseCell(object): return cell.ref -class Cell(_BaseCell): # TODO: inherit from Greenlet? +# TODO: inherit from Greenlet--so that gevent....
More detailed TODO about inheriting Cell from Greenlet
py
diff --git a/salt/utils/cloud.py b/salt/utils/cloud.py index <HASH>..<HASH> 100644 --- a/salt/utils/cloud.py +++ b/salt/utils/cloud.py @@ -995,7 +995,7 @@ def deploy_script(host, if key_filename: log.debug('Using {0} as the key_filename'.format(key_filename)) ssh_kwargs['k...
has_ssh_agent might not always be populated
py
diff --git a/PBB_fastrun.py b/PBB_fastrun.py index <HASH>..<HASH> 100644 --- a/PBB_fastrun.py +++ b/PBB_fastrun.py @@ -68,9 +68,11 @@ class FastRunContainer(object): elif self.prop_dt_map[prop_nr] == 'globe-coordinate': write_required = True # temporary workaround for handling globe coord...
fastrun print statements only in debug mode.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -48,11 +48,11 @@ except(IOError, ImportError): setup( name='esgfpid', - version='0.7.7', + version='0.7.8-dev', author='Merret Buurman, German Climate Computing Centre (DKRZ)', author_email='buurman@dkr...
Increment version number to <I>-dev.
py
diff --git a/pysat/tests/test_instrument.py b/pysat/tests/test_instrument.py index <HASH>..<HASH> 100644 --- a/pysat/tests/test_instrument.py +++ b/pysat/tests/test_instrument.py @@ -324,11 +324,9 @@ class TestInstGeneral(object): """ - with pytest.raises(ValueError) as err: - # Both name...
TST: updated instrument unit tests Updated instrument unit tests by implementing new test function.
py
diff --git a/pyvera/__init__.py b/pyvera/__init__.py index <HASH>..<HASH> 100755 --- a/pyvera/__init__.py +++ b/pyvera/__init__.py @@ -770,13 +770,13 @@ class VeraThermostat(VeraDevice): """Get current goal temperature / setpoint""" if refresh: self.refresh() - return self.get_valu...
Temperatures now come back as floats instead of strings
py
diff --git a/GPy/models/gp_regression.py b/GPy/models/gp_regression.py index <HASH>..<HASH> 100644 --- a/GPy/models/gp_regression.py +++ b/GPy/models/gp_regression.py @@ -1,7 +1,6 @@ -# Copyright (c) 2012, James Hensman +# Copyright (c) 2012 - 2014 the GPy Austhors (see AUTHORS.txt) # Licensed under the BSD 3-clause l...
added all authors to GP Regression copyright
py
diff --git a/rtpipe/calpipe.py b/rtpipe/calpipe.py index <HASH>..<HASH> 100755 --- a/rtpipe/calpipe.py +++ b/rtpipe/calpipe.py @@ -155,7 +155,11 @@ class pipe(object): # if flux calibrator available, use its model if self.fluxname and self.band: - fluxmodel = '/home/casa/packages/RHEL5/re...
fiddling to get P-band cal working as first pass. optional to not flag.
py
diff --git a/rl/agents/dqn.py b/rl/agents/dqn.py index <HASH>..<HASH> 100644 --- a/rl/agents/dqn.py +++ b/rl/agents/dqn.py @@ -99,7 +99,6 @@ class DQNAgent(AbstractDQNAgent): # Related objects. self.model = model self.policy = policy - self.policy._set_agent(self) # State. ...
Make the DQN policy a property so that it can be switched more easily (#<I>)
py
diff --git a/sprinter/environment.py b/sprinter/environment.py index <HASH>..<HASH> 100644 --- a/sprinter/environment.py +++ b/sprinter/environment.py @@ -115,6 +115,7 @@ class Environment(object): self.update_feature(feature) for feature in self.config.removes(): self.remove_feature(...
Injects on update * injects on update * clearing of profile added to injection for now
py
diff --git a/yandextank/plugins/NeUploader/plugin.py b/yandextank/plugins/NeUploader/plugin.py index <HASH>..<HASH> 100644 --- a/yandextank/plugins/NeUploader/plugin.py +++ b/yandextank/plugins/NeUploader/plugin.py @@ -68,9 +68,13 @@ class Plugin(AbstractPlugin, MonitoringDataListener): self.upload_monitoring(...
Add KeyboardInterrupt support on Neuploader
py
diff --git a/agner/job.py b/agner/job.py index <HASH>..<HASH> 100644 --- a/agner/job.py +++ b/agner/job.py @@ -1,8 +1,5 @@ from uuid import uuid4 -try: - import cPickle as pickle -except ImportError: - import Pickle as pickle +import json class Job(object): def __init__(self, **kwargs): @@ -12,7 +9,7 @@ class ...
switch encoding to json from pickle so redis lua scripts can interpret data if needed, also keep the job_id as a str(UUID4)
py
diff --git a/tests/conftest.py b/tests/conftest.py index <HASH>..<HASH> 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -102,6 +102,7 @@ def env(): def webapp(active_config): from dallinger.experiment_server import sockets app = sockets.app + app.root_path = os.getcwd() # look in the right plac...
Make sure we look in the test experiment dir for templates
py
diff --git a/qiskit/pulse/reschedule.py b/qiskit/pulse/reschedule.py index <HASH>..<HASH> 100644 --- a/qiskit/pulse/reschedule.py +++ b/qiskit/pulse/reschedule.py @@ -177,7 +177,7 @@ def add_implicit_acquires(schedule: ScheduleComponent, meas_map: List[List[int]] def pad(schedule: Schedule, channels: Optional...
Docathon: Fixup: formatting (#<I>) * Fixup documentation formatting in qiskit.pulse.reschedule where verbatim formatting was not properly closed * Update qiskit/pulse/reschedule.py
py
diff --git a/scripts/distributed_nextgen_pipeline.py b/scripts/distributed_nextgen_pipeline.py index <HASH>..<HASH> 100644 --- a/scripts/distributed_nextgen_pipeline.py +++ b/scripts/distributed_nextgen_pipeline.py @@ -2,7 +2,7 @@ """Run an automated analysis pipeline in a distributed cluster architecture. Usage: -...
Update usage message to match script name; thanks to Marina Manrique Lopez for poiting out
py
diff --git a/sciunit/unit_test/utils_tests.py b/sciunit/unit_test/utils_tests.py index <HASH>..<HASH> 100644 --- a/sciunit/unit_test/utils_tests.py +++ b/sciunit/unit_test/utils_tests.py @@ -7,6 +7,26 @@ import tempfile class UtilsTestCase(unittest.TestCase): """Unit tests for sciunit.utils""" + def test_war...
Add three unit tests for utils.py
py
diff --git a/molo/core/models.py b/molo/core/models.py index <HASH>..<HASH> 100644 --- a/molo/core/models.py +++ b/molo/core/models.py @@ -13,7 +13,7 @@ from molo.core.blocks import MarkDownBlock class HomePage(Page): - pass + parent_page_types = ['core.LanguagePage'] class Main(Page):
ensure homepage is only created within a language
py
diff --git a/dvc/remote/base.py b/dvc/remote/base.py index <HASH>..<HASH> 100644 --- a/dvc/remote/base.py +++ b/dvc/remote/base.py @@ -96,24 +96,22 @@ class RemoteBase(object): path, local = arg ret = [path] + md5 = self.project.cache.local.path_to_md5(path) if not RemoteLOCAL.is_d...
cloud: keep downloaded dir cache file Fixes #<I>
py
diff --git a/optimiser.py b/optimiser.py index <HASH>..<HASH> 100755 --- a/optimiser.py +++ b/optimiser.py @@ -194,7 +194,10 @@ class Optimiser(object): print self._status() current_assignment = self.global_best_assignment - while self.stayed_put < max_stayed_put: + while True: + ...
Changed main opt loop to always give error
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -34,7 +34,7 @@ setup_args = { 'version': "2.45.0", 'description': 'Python bindings for Selenium', 'long_description': open(join(abspath(dirname(__file__)), "py", "README")).read(), - 'url': 'http://code.googl...
python: Fixing the link to the project home page in the package description
py
diff --git a/testrail/api.py b/testrail/api.py index <HASH>..<HASH> 100644 --- a/testrail/api.py +++ b/testrail/api.py @@ -9,6 +9,7 @@ from helper import TestRailError nested_dict = lambda: collections.defaultdict(nested_dict) + class API(object): _ts = datetime.now() - timedelta(days=1) _shared_state =...
Set default project_id for sections.
py
diff --git a/salt/modules/boto_rds.py b/salt/modules/boto_rds.py index <HASH>..<HASH> 100644 --- a/salt/modules/boto_rds.py +++ b/salt/modules/boto_rds.py @@ -38,7 +38,6 @@ from __future__ import absolute_import # Import Python libs import logging import json -import ast import salt.ext.six as six from salt.ext.si...
Cleaned ast since it is not needed anymore
py
diff --git a/tests/test_manhole.py b/tests/test_manhole.py index <HASH>..<HASH> 100644 --- a/tests/test_manhole.py +++ b/tests/test_manhole.py @@ -61,14 +61,13 @@ def assert_manhole_running(proc, uds_path, oneshot=False, extra=None): wait_for_strings(proc.read, TIMEOUT, 'Cleaned up.', *[] if oneshot else ['Waiting...
Speed up tests by removing uneeded permuations Test simple was <I> times, each run with <I> iterations of the reconnecting code. This consumed about half of the test time for no value. Now we run only one time, using <I> iterations.
py
diff --git a/bigquery/tests/system.py b/bigquery/tests/system.py index <HASH>..<HASH> 100644 --- a/bigquery/tests/system.py +++ b/bigquery/tests/system.py @@ -107,6 +107,11 @@ TIME_PARTITIONING_CLUSTERING_FIELDS_SCHEMA = [ ), ] +# The VPC-SC team maintains a mirror of the GCS bucket used for code +# samples. Th...
Use configurable bucket name for GCS samples data in systems tests. (#<I>) * Use configurable bucket name for GCS samples data in systems tests. This allows the VPC-SC team to use their private mirror which is within the security boundary when testing BigQuery VPC-SC support. * Blacken
py
diff --git a/phoebe/frontend/bundle.py b/phoebe/frontend/bundle.py index <HASH>..<HASH> 100644 --- a/phoebe/frontend/bundle.py +++ b/phoebe/frontend/bundle.py @@ -1234,6 +1234,14 @@ class Bundle(Container): for ds in dss: #~ ds.load() #ds.estimate_sigma(force=False) + ...
timeseries are sorted automatically (in time) when loaded in the Bundle (added line in _attach_datasets)
py
diff --git a/nameko/retry.py b/nameko/retry.py index <HASH>..<HASH> 100644 --- a/nameko/retry.py +++ b/nameko/retry.py @@ -46,7 +46,7 @@ def retry( try: return wrapped(*args, **kwargs) except for_exceptions: - if counter.next() == max_attempts: + ...
no .next() method on itertools.count in py3
py
diff --git a/statuspage/statuspage.py b/statuspage/statuspage.py index <HASH>..<HASH> 100644 --- a/statuspage/statuspage.py +++ b/statuspage/statuspage.py @@ -389,7 +389,7 @@ def get_incidents(repo, issues): severity = get_severity(labels) # make sure that non-labeled issues are not displayed - ...
Fix for issues not being marked as resolved The "resolved" label is not in list of labels created by the system, so that caused that ```python if not affected_systems or severity is None: ``` to have `severity = None`, which basically made it ignore closed issues with no severity status (since you remove the labe...
py
diff --git a/pyquil/paulis.py b/pyquil/paulis.py index <HASH>..<HASH> 100644 --- a/pyquil/paulis.py +++ b/pyquil/paulis.py @@ -42,6 +42,7 @@ from pyquil.quilatom import ( FormalArgument, Expression, ExpressionDesignator, + MemoryReference ) from .quil import Program @@ -908,7 +909,7 @@ def exponen...
Fix return type hints for exponential_map and sub-functions (#<I>)
py
diff --git a/nbt/region.py b/nbt/region.py index <HASH>..<HASH> 100644 --- a/nbt/region.py +++ b/nbt/region.py @@ -61,8 +61,17 @@ class RegionFile(object): self.extents = None if self.file: self.size = getsize(self.filename) - self.parse_header() - self.parse_chunk_headers() + if self.size == 0: + # ...
Add a special case for empty region files. Some region files are 0 in size, an Minecraft seems to handle them without problems. This code handle them as empty region files.
py
diff --git a/montblanc/impl/rime/tensorflow/ms/ms_manager.py b/montblanc/impl/rime/tensorflow/ms/ms_manager.py index <HASH>..<HASH> 100644 --- a/montblanc/impl/rime/tensorflow/ms/ms_manager.py +++ b/montblanc/impl/rime/tensorflow/ms/ms_manager.py @@ -204,8 +204,8 @@ class MeasurementSetManager(object): # Order...
Fix debug logging of ordering query
py
diff --git a/pyaxiom/tests/test_timeseries.py b/pyaxiom/tests/test_timeseries.py index <HASH>..<HASH> 100644 --- a/pyaxiom/tests/test_timeseries.py +++ b/pyaxiom/tests/test_timeseries.py @@ -472,7 +472,8 @@ class TestTimeSeries(unittest.TestCase): assert nc.variables.get('time')[:].dtype == np.int32 a...
Newer numpy versions are blowing up with using isclose on all nan'd mask
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ license: GNU-GPL2 from setuptools import setup setup(name='consoleprinter', - version='11', + version='12', description='Console printer with linenumbers, stacktraces, logging, conversions and...
pip Tuesday <I> March <I> (week:<I> day:<I>), <I>:<I>:<I>
py
diff --git a/salt/cloud/clouds/vmware.py b/salt/cloud/clouds/vmware.py index <HASH>..<HASH> 100644 --- a/salt/cloud/clouds/vmware.py +++ b/salt/cloud/clouds/vmware.py @@ -1622,3 +1622,35 @@ def upgrade_tools(name, reboot=False, call=None): return 'VMware tools upgraded' return 'VMware tools is not insta...
added function rescanAllHba Function performs a rescan on all HBA’s on a specified host.
py
diff --git a/compliance_checker/cf/cf.py b/compliance_checker/cf/cf.py index <HASH>..<HASH> 100644 --- a/compliance_checker/cf/cf.py +++ b/compliance_checker/cf/cf.py @@ -2767,7 +2767,7 @@ class CFBaseCheck(BaseCheck): role_list = [getattr(var, 'cf_role', '').split(' ') for name,var in ds.dataset.variables.i...
test on featureType value should be case insensitive
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -9,10 +9,10 @@ setup(name='blended', license='GPL3.0', packages=['blended'], install_requires=[ - 'Click', + 'click', 'colorama', 'watchdog', - 'markdown', ...
updated setup with correct package name capitialization
py
diff --git a/validator/sawtooth_validator/execution/scheduler_serial.py b/validator/sawtooth_validator/execution/scheduler_serial.py index <HASH>..<HASH> 100644 --- a/validator/sawtooth_validator/execution/scheduler_serial.py +++ b/validator/sawtooth_validator/execution/scheduler_serial.py @@ -186,11 +186,14 @@ class S...
Skip state root calculation if no batches Handle the case where there are no batches.
py
diff --git a/colorlog/colorlog.py b/colorlog/colorlog.py index <HASH>..<HASH> 100644 --- a/colorlog/colorlog.py +++ b/colorlog/colorlog.py @@ -75,7 +75,7 @@ class ColoredFormatter(logging.Formatter): The ``secondary_log_colors`` argument can be used to create additional ``log_color`` attributes. Eac...
Correct secondary_log_colors format string Found an inconsistency in the usage of secondary_log_colors keys in log format strings.
py
diff --git a/treeherder/etl/perf.py b/treeherder/etl/perf.py index <HASH>..<HASH> 100644 --- a/treeherder/etl/perf.py +++ b/treeherder/etl/perf.py @@ -43,9 +43,6 @@ def _load_perf_datum(job, perf_datum): 'option_collection_hash': job.signature.option_collection_hash, 'machine_platform': job.signature....
Bug <I> - Remove obsolete e<I>s-special case handling in perf etl
py
diff --git a/odl/solvers/util/callback.py b/odl/solvers/util/callback.py index <HASH>..<HASH> 100644 --- a/odl/solvers/util/callback.py +++ b/odl/solvers/util/callback.py @@ -16,6 +16,7 @@ standard_library.install_aliases() import warnings import time import os +import copy import numpy as np from odl.util import ...
BUG: Fix bug with CallbackStore on objects without copy, closes #<I>
py
diff --git a/flat/views.py b/flat/views.py index <HASH>..<HASH> 100644 --- a/flat/views.py +++ b/flat/views.py @@ -253,6 +253,15 @@ def index(request, namespace=""): except Exception as e: return fatalerror(request,e) + if request.user.has_perm('groupwrite') and (request.u...
when user has groupwrite and copy/move permissions: create namespaces for all the users in our groups, since we may want to copy/move there (issue #<I>)
py
diff --git a/mongoctl/mongoctl.py b/mongoctl/mongoctl.py index <HASH>..<HASH> 100644 --- a/mongoctl/mongoctl.py +++ b/mongoctl/mongoctl.py @@ -444,21 +444,15 @@ def _set_a_process_limit(resource_name, desired_limit, description): def _negotiate_proc_limit(set_resource, desired_limit, soft, hard): - if desired_l...
another round of negotiation tightening ... really, could this get any more generic as an implementation of binary search?
py
diff --git a/ftfy/bad_codecs/utf8_variants.py b/ftfy/bad_codecs/utf8_variants.py index <HASH>..<HASH> 100644 --- a/ftfy/bad_codecs/utf8_variants.py +++ b/ftfy/bad_codecs/utf8_variants.py @@ -68,9 +68,8 @@ CESU8_RE = re.compile(CESU8_EXPR) # CESU-8, which have to be handled carefully on Python 2. SURROGATE_EXPR = (b'(...
fix comment about truncated encoding of U<I>
py
diff --git a/galpy/orbit_src/integratePlanarOrbit.py b/galpy/orbit_src/integratePlanarOrbit.py index <HASH>..<HASH> 100644 --- a/galpy/orbit_src/integratePlanarOrbit.py +++ b/galpy/orbit_src/integratePlanarOrbit.py @@ -67,6 +67,10 @@ def integratePlanarOrbit_leapfrog(pot,yo,t,rtol=None,atol=None): pot_type...
add SteadyLogSPiral to planar C integration
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ import setuptools setuptools.setup( name='PyKMIP', - version='0.1.0', + version='0.1.1', description='KMIP v1.1 library', keywords='KMIP', author='Peter Hamilton',
Updating PyKMIP to <I>.
py
diff --git a/ykman/fido.py b/ykman/fido.py index <HASH>..<HASH> 100644 --- a/ykman/fido.py +++ b/ykman/fido.py @@ -110,7 +110,7 @@ class Fido2Controller(object): _credman.delete_cred(credential_id) def get_pin_retries(self): - return self.pin.get_pin_retries() + return self.pin.get...
Fix get_pin_retries.
py
diff --git a/api/python/quilt3/packages.py b/api/python/quilt3/packages.py index <HASH>..<HASH> 100644 --- a/api/python/quilt3/packages.py +++ b/api/python/quilt3/packages.py @@ -1,5 +1,4 @@ from collections import deque -import binascii import copy import hashlib import io @@ -68,15 +67,16 @@ def _delete_local_phy...
Use sha<I> hashes when caching files (#<I>) Hex encoding can result in filenames that are too long.
py
diff --git a/gbdxtools/__init__.py b/gbdxtools/__init__.py index <HASH>..<HASH> 100644 --- a/gbdxtools/__init__.py +++ b/gbdxtools/__init__.py @@ -14,3 +14,7 @@ from gbdxtools.images.s3Image import S3Image from gbdxtools.images.catalog_image import CatalogImage from gbdxtools.answerfactory import Recipe, Project fro...
Issue warning on IpeImage instantiation if access via gbdxtools module-level import
py
diff --git a/tests/resources/pikamock.py b/tests/resources/pikamock.py index <HASH>..<HASH> 100644 --- a/tests/resources/pikamock.py +++ b/tests/resources/pikamock.py @@ -49,7 +49,7 @@ class MockPikaBlockingConnection(object): def __init__(self, params): self.is_open = True # This mocks the original API ...
Fixed unit test for check method: Raise missing exception in mock.
py
diff --git a/post_office/management/commands/cleanup_mail.py b/post_office/management/commands/cleanup_mail.py index <HASH>..<HASH> 100644 --- a/post_office/management/commands/cleanup_mail.py +++ b/post_office/management/commands/cleanup_mail.py @@ -25,5 +25,5 @@ class Command(BaseCommand): cutoff_date = no...
Make cleanup_mail management command much more memory efficient when used with tables with large number of rows.
py
diff --git a/salt/states/boto_secgroup.py b/salt/states/boto_secgroup.py index <HASH>..<HASH> 100644 --- a/salt/states/boto_secgroup.py +++ b/salt/states/boto_secgroup.py @@ -326,7 +326,7 @@ def _get_rule_changes(rules, _rules): # 2. determine if rule exists in existing security group rules for rule in rules:...
Cast ip_protocol rule as a str() in boto_secgroup.present Fixes #<I> Protects against a stacktrace lower in the function where we call ip_protocol.isdigit(), which expects a string.
py
diff --git a/shinken/modules/livestatus_broker/livestatus_query.py b/shinken/modules/livestatus_broker/livestatus_query.py index <HASH>..<HASH> 100644 --- a/shinken/modules/livestatus_broker/livestatus_query.py +++ b/shinken/modules/livestatus_broker/livestatus_query.py @@ -718,7 +718,7 @@ class LiveStatusQuery(object)...
Fix: Add ignore to decode (Nap) Don't crash with unsupported encoding.
py
diff --git a/tests/test_core.py b/tests/test_core.py index <HASH>..<HASH> 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -71,7 +71,8 @@ def test_category_pass(test_ia): df = IamDataFrame(path='tests', file='testing_data', ext='csv') dct = {'model': ['test_model'], 'scenario': ['test_scenario']} ...
add coloar argument to unit test for 'category()' to make sure that the test passes on CI
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from os.path import join, dirname from setuptools import setup, find_packages -VERSION = (5, 2, 0) +VERSION = (6, 1, 0) __version__ = VERSION __versionstr__ = '.'.join(map(str, VERSION))
Bump to version <I>
py
diff --git a/dci/api/v1/utils.py b/dci/api/v1/utils.py index <HASH>..<HASH> 100644 --- a/dci/api/v1/utils.py +++ b/dci/api/v1/utils.py @@ -367,7 +367,11 @@ class QueryBuilder(object): # identify the IDs. The second iterations is used to actually collect # the full record data. ids = self._get...
avoid warning triggered when id_ param is empty SQLAlchemy rises a warning when we do a IN with an empty list of ID. This little fixes avoid the problem. Change-Id: I<I>ec<I>a<I>f<I>dcd<I>b9d0ec<I>a6
py
diff --git a/django_extensions/logging/filters.py b/django_extensions/logging/filters.py index <HASH>..<HASH> 100644 --- a/django_extensions/logging/filters.py +++ b/django_extensions/logging/filters.py @@ -2,6 +2,8 @@ import time import logging from hashlib import md5 +# also see: https://djangosnippets.org/snippe...
add note about rate limiting snipplet
py
diff --git a/proso/django/response.py b/proso/django/response.py index <HASH>..<HASH> 100644 --- a/proso/django/response.py +++ b/proso/django/response.py @@ -22,6 +22,7 @@ def pass_get_parameters(request, dest_url, ignore=None): def render_json(request, json, template=None, status=None): + json = {'data': json...
wrap json objects into data field
py
diff --git a/mbuild/tests/test_compound.py b/mbuild/tests/test_compound.py index <HASH>..<HASH> 100755 --- a/mbuild/tests/test_compound.py +++ b/mbuild/tests/test_compound.py @@ -1091,7 +1091,12 @@ class TestCompound(BaseTest): assert np.allclose(methane.xyz, sdf_string.xyz, atol=1e-5) - def test_multip...
Add test to load in sdf
py
diff --git a/bcbio/structural/lumpy.py b/bcbio/structural/lumpy.py index <HASH>..<HASH> 100644 --- a/bcbio/structural/lumpy.py +++ b/bcbio/structural/lumpy.py @@ -91,7 +91,8 @@ def _prepare_smoove_bams(full_bams, sr_bams, disc_bams, items, tx_work_dir): def _allowed_errors(msg): allowed = ["covmed: not enough r...
Lumpy: also catch only second half of missing parameters errors
py
diff --git a/tests.py b/tests.py index <HASH>..<HASH> 100644 --- a/tests.py +++ b/tests.py @@ -10,8 +10,7 @@ class BehaveDjangoTestCase(unittest.TestCase): return_code = subprocess.call( ['python', 'manage.py', 'behave', '--tags', '~@failing'], stdout=FNULL, - # stderr=subp...
Restore original tests.py (failing in Travis-CI)
py
diff --git a/salt/cli/batch.py b/salt/cli/batch.py index <HASH>..<HASH> 100644 --- a/salt/cli/batch.py +++ b/salt/cli/batch.py @@ -54,6 +54,7 @@ class Batch(object): ''' Return the active number of minions to maintain ''' + snum = len(self.minions) try: if self.op...
add snum definition to figuring percentages
py
diff --git a/src/ocrmypdf/pdfinfo/info.py b/src/ocrmypdf/pdfinfo/info.py index <HASH>..<HASH> 100644 --- a/src/ocrmypdf/pdfinfo/info.py +++ b/src/ocrmypdf/pdfinfo/info.py @@ -409,15 +409,10 @@ class ImageInfo: return _get_dpi(self._shorthand, (self._width, self._height)) def __repr__(self): - cla...
info: replace introspection with explicit f-string
py
diff --git a/tests/test_git.py b/tests/test_git.py index <HASH>..<HASH> 100644 --- a/tests/test_git.py +++ b/tests/test_git.py @@ -146,7 +146,10 @@ def test_remotes_preserves_git_ssh(parentdir, git_remote): remote_name = 'myremote' remote_url = 'git+ssh://git@github.com/tony/AlgoXY.git' - git_repo = crea...
test_remotes_preserved_git_ssh: Don't obtain remote git repo
py
diff --git a/src/Exscript/util/sigint.py b/src/Exscript/util/sigint.py index <HASH>..<HASH> 100644 --- a/src/Exscript/util/sigint.py +++ b/src/Exscript/util/sigint.py @@ -51,11 +51,11 @@ class SigIntWatcher(object): def watch(self): try: - os.wait() + pid, status = os.wait() ...
Exscript.util.sigint: fix: exit with the same exit status as the child process.
py
diff --git a/isort/api.py b/isort/api.py index <HASH>..<HASH> 100644 --- a/isort/api.py +++ b/isort/api.py @@ -468,7 +468,7 @@ def find_imports_in_stream( - **_seen**: An optional set of imports already seen. Generally meant only for internal use. - ****config_kwargs**: Any config modifications. """ - ...
Config path should never be auto determined for import identification CLI
py
diff --git a/personalcapital/personalcapital.py b/personalcapital/personalcapital.py index <HASH>..<HASH> 100644 --- a/personalcapital/personalcapital.py +++ b/personalcapital/personalcapital.py @@ -44,19 +44,19 @@ class PersonalCapital(object): raise Exception() def authenticate_password(self, pass...
Return request responses from auth methods for debugging
py
diff --git a/csvdiff/records.py b/csvdiff/records.py index <HASH>..<HASH> 100644 --- a/csvdiff/records.py +++ b/csvdiff/records.py @@ -7,6 +7,7 @@ from typing.io import TextIO from typing import Any, Dict, Tuple, Iterator, List, Sequence import csv +import sys from . import error @@ -26,6 +27,9 @@ class SafeDic...
Bump the maximum field size to <I>m At least one user had troubles with the default field size of ~<I>k.
py
diff --git a/pymongo/mongo_client.py b/pymongo/mongo_client.py index <HASH>..<HASH> 100644 --- a/pymongo/mongo_client.py +++ b/pymongo/mongo_client.py @@ -183,10 +183,7 @@ class MongoClient(common.BaseObject): match this name. Implies that the hosts specified are a seed list and the driver sho...
PYTHON-<I> - Fix out of date note about "not master" error
py
diff --git a/salt/utils/vmware.py b/salt/utils/vmware.py index <HASH>..<HASH> 100644 --- a/salt/utils/vmware.py +++ b/salt/utils/vmware.py @@ -187,7 +187,6 @@ def get_service_instance(host, username, password, protocol=None, port=None): service_instance = GetSi() if service_instance: if service_insta...
Fix a bug with self signed certificates and creating a new VM - Removed the GetConnection call as all this does is cause connections that are connected with the overrides for "CERTIFICATE_VERIFY_FAILED" to not be able to connect the 2nd time the si is fetched
py
diff --git a/cumulusci/core/keychain/BaseEncryptedProjectKeychain.py b/cumulusci/core/keychain/BaseEncryptedProjectKeychain.py index <HASH>..<HASH> 100644 --- a/cumulusci/core/keychain/BaseEncryptedProjectKeychain.py +++ b/cumulusci/core/keychain/BaseEncryptedProjectKeychain.py @@ -84,7 +84,7 @@ class BaseEncryptedProj...
unpickling can raise other exceptions such as ValueError
py
diff --git a/openquake/calculators/base.py b/openquake/calculators/base.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/base.py +++ b/openquake/calculators/base.py @@ -521,12 +521,10 @@ class HazardCalculator(BaseCalculator): with self.monitor('reading site collection', autoflush=True): ...
Cleanup [skip CI]
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -56,7 +56,7 @@ setuptools.setup( author="Gorka Eguileor", author_email='geguileo@redhat.com', url='https://github.com/akrog/cinderlib', - packages=setuptools.find_packages(exclude=['tmp', 'tests.*', 'tests.*'...
Fix generated packages Besides cinderlib and cinderlib.persistence we were also including a "tests" package we shouldn't be including. This patch corrects this by fixing the exclude pattern in the `setuptools.find_packages` call.
py
diff --git a/mqtt_codec/packet.py b/mqtt_codec/packet.py index <HASH>..<HASH> 100644 --- a/mqtt_codec/packet.py +++ b/mqtt_codec/packet.py @@ -3,6 +3,10 @@ `mqtt_codec.packet` Package ============================ +A collection of classes used to represent MQTT control packets as +described in the specification. Th...
Updated mqtt_codec.packet docstrings.
py
diff --git a/python/setup.py b/python/setup.py index <HASH>..<HASH> 100755 --- a/python/setup.py +++ b/python/setup.py @@ -25,9 +25,9 @@ except ImportError: pass major, minor = sys.version_info[:2] -python_26 = (major > 2 or (major == 2 and minor >= 6)) -if not python_26: - raise RuntimeError("Python 2.6 or ...
Reinstate claim that library supports Python<I> This reverts commit f<I>a<I>fb<I>ef<I>af<I>cab<I>.
py
diff --git a/porespy/metrics/__funcs__.py b/porespy/metrics/__funcs__.py index <HASH>..<HASH> 100644 --- a/porespy/metrics/__funcs__.py +++ b/porespy/metrics/__funcs__.py @@ -443,7 +443,8 @@ def chord_counts(im): function is ``sp.bincount`` which gives the number of chords of each length in a format suitable ...
To ensure input image has chords already applied to it.
py
diff --git a/src/python/dxpy/cli/exec_io.py b/src/python/dxpy/cli/exec_io.py index <HASH>..<HASH> 100644 --- a/src/python/dxpy/cli/exec_io.py +++ b/src/python/dxpy/cli/exec_io.py @@ -532,7 +532,7 @@ class ExecutableInputs(object): except: pass - def prompt_for_missing(self): + def prompt_f...
dx run -y: no prompt for optional inputs when no req'd inputs present Test Plan: tested an applet before and after by hand Reviewers: akislyuk, klai Reviewed By: klai Differential Revision: <URL>
py
diff --git a/tensor2tensor/utils/decoding.py b/tensor2tensor/utils/decoding.py index <HASH>..<HASH> 100644 --- a/tensor2tensor/utils/decoding.py +++ b/tensor2tensor/utils/decoding.py @@ -615,7 +615,8 @@ def _decode_batch_input_fn(num_decode_batches, sorted_inputs, vocabulary, batch_inputs.append(input_ids) ...
Fixes decoding on GPU, currently broken with default hparams due to assert on line <I>. PiperOrigin-RevId: <I>
py
diff --git a/src/Exscriptd/OrderDB.py b/src/Exscriptd/OrderDB.py index <HASH>..<HASH> 100644 --- a/src/Exscriptd/OrderDB.py +++ b/src/Exscriptd/OrderDB.py @@ -409,7 +409,7 @@ class OrderDB(object): if not row or last_host_id != row[tbl_h.c.id]: break - if not r...
Exscriptd.OrderDB: fix: get_orders() would only ever return the first result.
py
diff --git a/faker/providers/phone_number/pt_BR/__init__.py b/faker/providers/phone_number/pt_BR/__init__.py index <HASH>..<HASH> 100644 --- a/faker/providers/phone_number/pt_BR/__init__.py +++ b/faker/providers/phone_number/pt_BR/__init__.py @@ -70,4 +70,19 @@ class Provider(PhoneNumberProvider): '81 ####-###...
Add MSISDN in the phone_number provider The pt_br locale only
py
diff --git a/src/holodeck/agents.py b/src/holodeck/agents.py index <HASH>..<HASH> 100644 --- a/src/holodeck/agents.py +++ b/src/holodeck/agents.py @@ -85,7 +85,7 @@ class HolodeckAgent: self._action_buffer = \ self._client.malloc(name, [self._max_control_scheme_length], np.float32) - # Te...
changed instructions for teleport_type_buffer
py
diff --git a/pandas/_testing/_warnings.py b/pandas/_testing/_warnings.py index <HASH>..<HASH> 100644 --- a/pandas/_testing/_warnings.py +++ b/pandas/_testing/_warnings.py @@ -144,7 +144,7 @@ def _assert_caught_no_extra_warnings( if _is_unexpected_warning(actual_warning, expected_warning): unclosed...
fix test for SSL warning (#<I>)
py
diff --git a/gdspy/__init__.py b/gdspy/__init__.py index <HASH>..<HASH> 100644 --- a/gdspy/__init__.py +++ b/gdspy/__init__.py @@ -180,6 +180,28 @@ class Polygon(object): return "Polygon ({} vertices, layer {}, datatype {})".format( len(self.points), self.layer, self.datatype) + def get_bound...
Added bounding box method for Polygon object.
py
diff --git a/salt/modules/zypper.py b/salt/modules/zypper.py index <HASH>..<HASH> 100644 --- a/salt/modules/zypper.py +++ b/salt/modules/zypper.py @@ -357,10 +357,12 @@ def info_installed(*names, **kwargs): t_nfo = dict() # Translate dpkg-specific keys to a common structure for key, value in ...
Don't completely skip UTF-8 check in Python3
py
diff --git a/imagemounter/volume.py b/imagemounter/volume.py index <HASH>..<HASH> 100644 --- a/imagemounter/volume.py +++ b/imagemounter/volume.py @@ -558,7 +558,7 @@ class Volume(object): # we have two possible sources for determining the FS type: the description given to us by the detection ...
There's no point in checking statfstype in determine_fs_type, since fsstat data is loaded after determining the fs type.
py
diff --git a/visidata/aggregators.py b/visidata/aggregators.py index <HASH>..<HASH> 100644 --- a/visidata/aggregators.py +++ b/visidata/aggregators.py @@ -154,5 +154,5 @@ addGlobals(globals()) Sheet.addCommand('+', 'aggregate-col', 'addAggregators([cursorCol], chooseMany(aggregator_choices))', 'add aggregator to c...
Fix error-raising typo in z+ Typo seems to have been introduced here: <URL>
py
diff --git a/bidso/files.py b/bidso/files.py index <HASH>..<HASH> 100644 --- a/bidso/files.py +++ b/bidso/files.py @@ -7,10 +7,10 @@ from pathlib import Path class file_Core(): def __init__(self, filename): self.filename = Path(filename) - self.subject = _match(self.filename, 'sub-([a-zA-Z0-9]+)_'...
also include - (dash) in subject, session names (not sure if kosher)
py