diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/ansible_mitogen/process.py b/ansible_mitogen/process.py index <HASH>..<HASH> 100644 --- a/ansible_mitogen/process.py +++ b/ansible_mitogen/process.py @@ -59,6 +59,8 @@ import mitogen.utils import ansible import ansible.constants as C import ansible.errors +# required for mocking sshpass check on ansible...
need to get around sshpass check here somehow: <URL>
py
diff --git a/ldapcherry/backend/backendAD.py b/ldapcherry/backend/backendAD.py index <HASH>..<HASH> 100644 --- a/ldapcherry/backend/backendAD.py +++ b/ldapcherry/backend/backendAD.py @@ -95,6 +95,7 @@ class Backend(ldapcherry.backend.backendLdap.Backend): self.search_filter_tmpl = '(&(|(sAMAccountName=%(search...
adding filter for ad backend
py
diff --git a/pydoop/hadoop_utils.py b/pydoop/hadoop_utils.py index <HASH>..<HASH> 100644 --- a/pydoop/hadoop_utils.py +++ b/pydoop/hadoop_utils.py @@ -319,11 +319,17 @@ class HadoopVersion(object): def is_exe(fpath): - return os.path.exists(fpath) and os.access(fpath, os.X_OK) + """ + Path references an e...
Test specifically for executable/readable *files*
py
diff --git a/fulfil_client/model.py b/fulfil_client/model.py index <HASH>..<HASH> 100644 --- a/fulfil_client/model.py +++ b/fulfil_client/model.py @@ -80,6 +80,21 @@ class FloatType(BaseType): super(FloatType, self).__init__(*args, **kwargs) +class One2ManyType(BaseType): + + def __init__(self, model, *...
Use AR pattern in M2O and O2M
py
diff --git a/draco/run.py b/draco/run.py index <HASH>..<HASH> 100644 --- a/draco/run.py +++ b/draco/run.py @@ -45,7 +45,7 @@ class Result: for ((head, body),) in answers: if head == "cost": cost = int(body[0]) - elif head == "violation": + elif head == "soft"...
fix run to use "soft" over "violation"
py
diff --git a/examples/glyphs/data_tables_server.py b/examples/glyphs/data_tables_server.py index <HASH>..<HASH> 100644 --- a/examples/glyphs/data_tables_server.py +++ b/examples/glyphs/data_tables_server.py @@ -124,7 +124,7 @@ class DataTables(object): print("Please visit %s to see the plots" % link) ...
Add missing self in glyphs/data_tables_server
py
diff --git a/lib/tri/form/views.py b/lib/tri/form/views.py index <HASH>..<HASH> 100644 --- a/lib/tri/form/views.py +++ b/lib/tri/form/views.py @@ -117,6 +117,7 @@ def create_or_edit_object( form.apply(instance) instance.save() + form.instance = instance kwargs['inst...
Set instance on form just after save to be able to i.e. get newly created pk to use in a redirect
py
diff --git a/src/main/python/rlbot/botmanager/bot_manager.py b/src/main/python/rlbot/botmanager/bot_manager.py index <HASH>..<HASH> 100644 --- a/src/main/python/rlbot/botmanager/bot_manager.py +++ b/src/main/python/rlbot/botmanager/bot_manager.py @@ -184,6 +184,9 @@ class BotManager: if new_mod...
Clear the bots rendering on reload. (#<I>)
py
diff --git a/lib/__init__.py b/lib/__init__.py index <HASH>..<HASH> 100644 --- a/lib/__init__.py +++ b/lib/__init__.py @@ -170,23 +170,17 @@ def read_region_as_imagecoord(s, header): return rp.filter_shape(sss3) - -def get_mask(region, hdu): +def get_mask(region, hdu, origin=1): """ f = pyfits.read("...
get_mask bug fix: header<->origin Fixes a bug in 'get_mask' function where a header was passed to 'as_region_filter' as 'origin' argument
py
diff --git a/tiingo/api.py b/tiingo/api.py index <HASH>..<HASH> 100644 --- a/tiingo/api.py +++ b/tiingo/api.py @@ -334,16 +334,13 @@ class TiingoClient(RestClient): # Crypto # tiingo/crypto - def get_crypto_top_of_book(self, tickers=[], - endDate=None, exchanges=[], + def...
Remove `endDate` argument from crypto top of book endpoint
py
diff --git a/ndb/query.py b/ndb/query.py index <HASH>..<HASH> 100644 --- a/ndb/query.py +++ b/ndb/query.py @@ -1225,9 +1225,12 @@ class _SubQueryIteratorState(object): def __cmp__(self, other): assert isinstance(other, _SubQueryIteratorState), repr(other) assert self.orders == other.orders, (self.orders, o...
Switch comparison to low-level _cmp() API.
py
diff --git a/slither/core/source_mapping/source_mapping.py b/slither/core/source_mapping/source_mapping.py index <HASH>..<HASH> 100644 --- a/slither/core/source_mapping/source_mapping.py +++ b/slither/core/source_mapping/source_mapping.py @@ -19,12 +19,12 @@ class SourceMapping(Context): Not done in an eff...
Updated line number calculation to use splitlines() instead of split('\n').
py
diff --git a/databasetools/__init__.py b/databasetools/__init__.py index <HASH>..<HASH> 100644 --- a/databasetools/__init__.py +++ b/databasetools/__init__.py @@ -1,8 +1,9 @@ -from databasetools.csv import CSVExport, CSVImport +from databasetools.csv import CSVExport, CSVImport, CSV from databasetools.sqlite import SQ...
Added CSV class to __init__.py
py
diff --git a/src/container_support/training.py b/src/container_support/training.py index <HASH>..<HASH> 100644 --- a/src/container_support/training.py +++ b/src/container_support/training.py @@ -11,6 +11,8 @@ class Trainer(object): env.start_metrics_if_enabled() base_dir = env.base_dir + ...
pip install requirements in training container (#<I>)
py
diff --git a/salt/grains/napalm.py b/salt/grains/napalm.py index <HASH>..<HASH> 100644 --- a/salt/grains/napalm.py +++ b/salt/grains/napalm.py @@ -392,6 +392,8 @@ def host_dns(proxy=None): AAAA: - fd0f:9fd6:5fab::1 ''' + if not __opts__.get('napalm_host_dns_grain', False): + ...
Disable host_dns grain by default
py
diff --git a/shap/explainers/_explainer.py b/shap/explainers/_explainer.py index <HASH>..<HASH> 100644 --- a/shap/explainers/_explainer.py +++ b/shap/explainers/_explainer.py @@ -1,6 +1,7 @@ from .. import maskers from .. import links -from ..utils import safe_isinstance, show_progress +from ..utils import safe_isins...
Added wrapper functionality to detect transformer model and create a teacher forcing logit wrapper model along with fixed composite masker wrapper masker
py
diff --git a/jeni.py b/jeni.py index <HASH>..<HASH> 100644 --- a/jeni.py +++ b/jeni.py @@ -642,6 +642,8 @@ class Injector(object): # Note: Unable to apply injector on close method. finalizer() self.closed = True + self.instances.clear() + self.values.clear() def p...
Deref provider instances and cached values in close(). I experimented with cleaning up generators also, but it had little or no impact.
py
diff --git a/ca/django_ca/views.py b/ca/django_ca/views.py index <HASH>..<HASH> 100644 --- a/ca/django_ca/views.py +++ b/ca/django_ca/views.py @@ -13,9 +13,7 @@ # You should have received a copy of the GNU General Public License along with django-ca. If not, # see <http://www.gnu.org/licenses/>. -from django.contr...
do not test for revoked - never happens
py
diff --git a/openquake/baselib/hdf5.py b/openquake/baselib/hdf5.py index <HASH>..<HASH> 100644 --- a/openquake/baselib/hdf5.py +++ b/openquake/baselib/hdf5.py @@ -433,10 +433,8 @@ def dumps(dic): new[k] = {cls2dotname(v.__class__): dumps(vars(v))} elif isinstance(v, dict): new[k] = du...
Fixed hdf5.dumps
py
diff --git a/salt/states/kernelpkg.py b/salt/states/kernelpkg.py index <HASH>..<HASH> 100644 --- a/salt/states/kernelpkg.py +++ b/salt/states/kernelpkg.py @@ -8,14 +8,14 @@ Example state to install the latest kernel from package repositories: .. code-block:: yaml install-latest-kernel: - kernel.latest_inst...
Fix kernelpkg (#<I>) * add -r support to setup.py * fix ret * Update setup.py * run lint * port doc fix * Update setup.py
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -51,4 +51,4 @@ if __name__ == "__main__": license="GPL v3", keywords="CAN Kvaser CANLIB", package_data={"pycanlib": ["version.txt"], "": ["CONTRIBUTORS.txt", "LICENSE.txt"], "doc": ["*.*"]}, - ...
Removed examples from list of scripts to install in Python's Scripts directory
py
diff --git a/spade/Agent.py b/spade/Agent.py index <HASH>..<HASH> 100644 --- a/spade/Agent.py +++ b/spade/Agent.py @@ -749,7 +749,7 @@ class Agent(AbstractAgent): self.server = jid.getDomain() self.port = port AbstractAgent.__init__(self, agentjid, self.server) - self.jabber = xmpp.Client(sel...
debug on xmpp agents
py
diff --git a/pyhomematic/__init__.py b/pyhomematic/__init__.py index <HASH>..<HASH> 100644 --- a/pyhomematic/__init__.py +++ b/pyhomematic/__init__.py @@ -71,7 +71,8 @@ def create_server(local=LOCAL, interface_id=INTERFACE_ID, autostart=False, eventcallback=False...
Added resolvenames-parameter
py
diff --git a/tests/unit/algorithms/GenericTransportTest.py b/tests/unit/algorithms/GenericTransportTest.py index <HASH>..<HASH> 100644 --- a/tests/unit/algorithms/GenericTransportTest.py +++ b/tests/unit/algorithms/GenericTransportTest.py @@ -289,6 +289,12 @@ class GenericTransportTest: rate_individual = alg.r...
add unit test for exceptions thrown
py
diff --git a/slave/ppms.py b/slave/ppms.py index <HASH>..<HASH> 100644 --- a/slave/ppms.py +++ b/slave/ppms.py @@ -1,6 +1,8 @@ # -*- coding: utf-8 -*- # # Slave, (c) 2012, see AUTHORS. Licensed under the GNU GPL. +import datetime + from slave.core import Command from slave.types import Enum, Float, Integer from s...
Parsing unix timestamp in system status code.
py
diff --git a/pymatgen/phasediagram/analyzer.py b/pymatgen/phasediagram/analyzer.py index <HASH>..<HASH> 100644 --- a/pymatgen/phasediagram/analyzer.py +++ b/pymatgen/phasediagram/analyzer.py @@ -68,7 +68,7 @@ class PDAnalyzer(object): if set(comp.elements).difference(self._pd.elements): raise Valu...
refactoring to use PhaseDiagram.pd_coords
py
diff --git a/steam_idle/page_parser.py b/steam_idle/page_parser.py index <HASH>..<HASH> 100644 --- a/steam_idle/page_parser.py +++ b/steam_idle/page_parser.py @@ -265,6 +265,9 @@ class SteamBadges(object): if appids_not_in_shelve: # GetAppInfo only returns info for 100 apps at once + ...
Add a note regarding IPlayerService API
py
diff --git a/afkak/test/test_client_integration.py b/afkak/test/test_client_integration.py index <HASH>..<HASH> 100644 --- a/afkak/test/test_client_integration.py +++ b/afkak/test/test_client_integration.py @@ -152,7 +152,7 @@ class TestAfkakClientIntegration(KafkaIntegrationTestCase): c_group, att...
Fix coverage report Test may not always encounter race condition with Kafka, so should not count against coverage.
py
diff --git a/models.py b/models.py index <HASH>..<HASH> 100644 --- a/models.py +++ b/models.py @@ -39,7 +39,7 @@ class Format(db.Model): name = db.Column(db.String(255), nullable=False) - code = db.Column(db.String(6), nullable=False, unique=True) + code = db.Column(db.String(20), nullable=False, unique=...
formatter: hotfix format.code column size * Fixes an issue with Format model after merging <I>d<I>cb5.
py
diff --git a/test/test_cli.py b/test/test_cli.py index <HASH>..<HASH> 100644 --- a/test/test_cli.py +++ b/test/test_cli.py @@ -6,7 +6,7 @@ import os import sys from scripttest import TestFileEnvironment -from nose.tools import assert_equals, nottest +from nose.tools import assert_equal, nottest import escpos TES...
change useage of assert_equal(s)
py
diff --git a/controller/api/views.py b/controller/api/views.py index <HASH>..<HASH> 100644 --- a/controller/api/views.py +++ b/controller/api/views.py @@ -158,9 +158,8 @@ class AppViewSet(BaseDeisViewSet): def run(self, request, **kwargs): app = self.get_object() - command = request.data['command...
ref(controller): small optimizations We don't need to create a variable for something that we reference only once, and we don't need to throw an independent call into a try/catch block if it's not required.
py
diff --git a/superset/config.py b/superset/config.py index <HASH>..<HASH> 100644 --- a/superset/config.py +++ b/superset/config.py @@ -76,6 +76,9 @@ APP_ICON = "/static/assets/images/superset-logo@2x.png" # Druid query timezone # tz.tzutc() : Using utc timezone # tz.tzlocal() : Using local timezone +# tz.gettz('Asia...
Using the time zone with specific name for querying Druid (#<I>) * Using the time zone with specific name for querying Druid * Revert DRUID_TZ into tz.tzutc() (#<I>)
py
diff --git a/flask_unchained/bundles/api/model_resource.py b/flask_unchained/bundles/api/model_resource.py index <HASH>..<HASH> 100644 --- a/flask_unchained/bundles/api/model_resource.py +++ b/flask_unchained/bundles/api/model_resource.py @@ -452,9 +452,15 @@ class ModelResource(Resource, metaclass=ModelResourceMetacla...
fall back to returning json from model resource if we can
py
diff --git a/netpyne/conversion/neuromlFormat.py b/netpyne/conversion/neuromlFormat.py index <HASH>..<HASH> 100644 --- a/netpyne/conversion/neuromlFormat.py +++ b/netpyne/conversion/neuromlFormat.py @@ -672,7 +672,7 @@ def exportNeuroML2(reference, connections=True, stimulations=True, format='xml', #### NOTE: ...
commented neuroml line cause resulted in error if neuroml not installed
py
diff --git a/tests/integration/modules/supervisord.py b/tests/integration/modules/supervisord.py index <HASH>..<HASH> 100644 --- a/tests/integration/modules/supervisord.py +++ b/tests/integration/modules/supervisord.py @@ -1,3 +1,4 @@ +import os import integration @@ -14,6 +15,8 @@ class SupervisordModuleTest(inte...
Regular users cannot run the supervisor tests.
py
diff --git a/xmantissa/test/test_rendertools.py b/xmantissa/test/test_rendertools.py index <HASH>..<HASH> 100644 --- a/xmantissa/test/test_rendertools.py +++ b/xmantissa/test/test_rendertools.py @@ -19,21 +19,25 @@ class LivePageRendererTestCase(TestCase): """ message = 'Hello, world.' - docFactory = sta...
Merge rendertools-<I> Author: exarkun Reviewer: washort Fixes #<I> Use the liveFragment renderer for fragments and the liveElement renderer for elements, instead of using the liveElement renderer for anything.
py
diff --git a/luigi/interface.py b/luigi/interface.py index <HASH>..<HASH> 100644 --- a/luigi/interface.py +++ b/luigi/interface.py @@ -99,8 +99,10 @@ class EnvironmentParamsContainer(task.Task): ) @classmethod - def env_params(cls, override_defaults={}): + def env_params(cls, override_defaults=None): ...
Default values should not be mutable. It is a kind of popular gotcha in python. Just to avoid incidents it is a good idea to not use mutable objects as default values.
py
diff --git a/safe/engine/interpolation.py b/safe/engine/interpolation.py index <HASH>..<HASH> 100644 --- a/safe/engine/interpolation.py +++ b/safe/engine/interpolation.py @@ -51,7 +51,12 @@ def assign_hazard_values_to_exposure_data(hazard, exposure, If hazard and exposure layers are both of type raster, ...
Improved docstring for high level interpolation
py
diff --git a/kubernetes/models/v1/TCPSocketAction.py b/kubernetes/models/v1/TCPSocketAction.py index <HASH>..<HASH> 100644 --- a/kubernetes/models/v1/TCPSocketAction.py +++ b/kubernetes/models/v1/TCPSocketAction.py @@ -32,9 +32,7 @@ class TCPSocketAction(object): msg = 'TCPSocketAction: port: [ {0} ] is invali...
v1.TCPSocketAction: fixes check for port
py
diff --git a/nudibranch/models.py b/nudibranch/models.py index <HASH>..<HASH> 100644 --- a/nudibranch/models.py +++ b/nudibranch/models.py @@ -743,8 +743,13 @@ class TestableStatus(object): if had_build_errors: # Add a build error message self.issues = {} for filename, (warnings, err...
Testable error messages should only apply to files the testable requires.
py
diff --git a/pyimgur/__init__.py b/pyimgur/__init__.py index <HASH>..<HASH> 100644 --- a/pyimgur/__init__.py +++ b/pyimgur/__init__.py @@ -566,7 +566,7 @@ class Imgur: self.ratelimit_userreset = None self.DEFAULT_LIMIT = 100 - def _send_request(self, url, needs_auth=False, *args, **kwargs): + ...
_send_request is never called with *args. Removed.
py
diff --git a/conan/builds_generator.py b/conan/builds_generator.py index <HASH>..<HASH> 100644 --- a/conan/builds_generator.py +++ b/conan/builds_generator.py @@ -153,7 +153,7 @@ def get_linux_gcc_builds(gcc_versions, archs, shared_option_name, pure_c, build_ if not pure_c: ...
Fix generation of libstdc<I> builds on gcc5.
py
diff --git a/easy_thumbnails/tests/test_aliases.py b/easy_thumbnails/tests/test_aliases.py index <HASH>..<HASH> 100644 --- a/easy_thumbnails/tests/test_aliases.py +++ b/easy_thumbnails/tests/test_aliases.py @@ -267,6 +267,24 @@ class GenerationTest(GenerationBase): files = self.fake_save(profile) self...
Add test case for ClearableFileInput behaviour
py
diff --git a/programs/thellier_magic.py b/programs/thellier_magic.py index <HASH>..<HASH> 100755 --- a/programs/thellier_magic.py +++ b/programs/thellier_magic.py @@ -148,6 +148,10 @@ def main(): # get all the non-null intensity records of the same type meas_data = meas_data[meas_data[int_key].notnull()] + ...
give a warning if there is not intensity data for thellier_magic
py
diff --git a/pyiso.py b/pyiso.py index <HASH>..<HASH> 100644 --- a/pyiso.py +++ b/pyiso.py @@ -4569,6 +4569,9 @@ class PyIso(object): child.parent.remove_child(child, index, self.pvd) self.pvd.remove_entry(child.file_length()) + if self.joliet_vd is not None: + self.joliet_vd.remov...
Make sure to remove size from the joliet_vd if it is there.
py
diff --git a/guanciale/idascript.py b/guanciale/idascript.py index <HASH>..<HASH> 100644 --- a/guanciale/idascript.py +++ b/guanciale/idascript.py @@ -265,10 +265,9 @@ for func in idautils.Functions(): insns_list.append(base64.b64encode(idc.GetManyBytes(cur_addr, size))) #add to flow_insns...
idascript: implemented fix for getting mnemonics in some archs
py
diff --git a/src/streamlink/plugins/douyutv.py b/src/streamlink/plugins/douyutv.py index <HASH>..<HASH> 100644 --- a/src/streamlink/plugins/douyutv.py +++ b/src/streamlink/plugins/douyutv.py @@ -14,9 +14,10 @@ API_SECRET = "Y237pxTx2In5ayGz" SHOW_STATUS_ONLINE = 1 SHOW_STATUS_OFFLINE = 2 STREAM_WEIGHTS = { - "med...
update stream name, middle and middle2 are of different quality
py
diff --git a/salt/cloud/clouds/joyent.py b/salt/cloud/clouds/joyent.py index <HASH>..<HASH> 100644 --- a/salt/cloud/clouds/joyent.py +++ b/salt/cloud/clouds/joyent.py @@ -1134,5 +1134,3 @@ def query(action=None, return_content = yaml.safe_load(content) return [result['status'], return_content] - -
Remove blank lines at end of file to satisfy linter
py
diff --git a/warehouse/manage/views.py b/warehouse/manage/views.py index <HASH>..<HASH> 100644 --- a/warehouse/manage/views.py +++ b/warehouse/manage/views.py @@ -579,7 +579,7 @@ class ProvisionMacaroonViews: def manage_macaroons(self): return self.default_response - @view_config(request_method="POST...
Don't route create_macaroon with request_param (#<I>)
py
diff --git a/gssapi/__init__.py b/gssapi/__init__.py index <HASH>..<HASH> 100644 --- a/gssapi/__init__.py +++ b/gssapi/__init__.py @@ -10,7 +10,6 @@ from .headers.gssapi_h import ( GSS_C_ANON_FLAG as C_ANON_FLAG, GSS_C_PROT_READY_FLAG as C_PROT_READY_FLAG, GSS_C_TRANS_FLAG as C_TRANS_FLAG, - GSS_C_DEL...
Don't raise ImportError, if the constant GSS_C_DELEG_POLICY_FLAG is not defined. MIT kerberos prior to version <I> does not define this constant.
py
diff --git a/tests/integration/states/test_lxd.py b/tests/integration/states/test_lxd.py index <HASH>..<HASH> 100644 --- a/tests/integration/states/test_lxd.py +++ b/tests/integration/states/test_lxd.py @@ -1,17 +1,11 @@ -# -*- coding: utf-8 -*- """ Integration tests for the lxd states """ -# Import Python Libs -fro...
Drop Py2 and six on tests/integration/states/test_lxd.py
py
diff --git a/salt/utils/args.py b/salt/utils/args.py index <HASH>..<HASH> 100644 --- a/salt/utils/args.py +++ b/salt/utils/args.py @@ -451,10 +451,10 @@ def format_call(fun, continue extra[key] = copy.deepcopy(value) - # We'll be showing errors to the users until Salt Oxygen comes out, after ...
Bump deprecation notice in utils/args from Oxygen to Fluorine
py
diff --git a/streamcorpus_pipeline/_taggers.py b/streamcorpus_pipeline/_taggers.py index <HASH>..<HASH> 100644 --- a/streamcorpus_pipeline/_taggers.py +++ b/streamcorpus_pipeline/_taggers.py @@ -291,7 +291,7 @@ def _offset_labels(stream_item, aligner_data, offset_type='BYTES'): ## only for debugging ...
fixing aligning assert to cope with "-LRB-" not in "(BPA)"
py
diff --git a/openquake/calculators/hazard/uhs/core.py b/openquake/calculators/hazard/uhs/core.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/hazard/uhs/core.py +++ b/openquake/calculators/hazard/uhs/core.py @@ -20,6 +20,7 @@ import h5py import numpy +import random from celery.task import task from d...
More calculator sketching, added a missing import. Next, write async task handler function.
py
diff --git a/openquake/calculators/disaggregation.py b/openquake/calculators/disaggregation.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/disaggregation.py +++ b/openquake/calculators/disaggregation.py @@ -220,6 +220,12 @@ producing too small PoEs.''' raise RuntimeError('All sources were filte...
Added a warning in the disaggregation [skip CI] Former-commit-id: d<I>cd<I>a7bdbb0c<I>c<I>f5ec<I>b7d<I>b<I>f7
py
diff --git a/salt/cloud/clouds/openstack.py b/salt/cloud/clouds/openstack.py index <HASH>..<HASH> 100644 --- a/salt/cloud/clouds/openstack.py +++ b/salt/cloud/clouds/openstack.py @@ -384,7 +384,7 @@ def managedcloud(vm_): ) -def networks(vm_): +def networks(vm_, kwargs={}): conn = get_conn() networks...
pass kwargs so that fixed networks can be set
py
diff --git a/master/buildbot/plugins/__init__.py b/master/buildbot/plugins/__init__.py index <HASH>..<HASH> 100644 --- a/master/buildbot/plugins/__init__.py +++ b/master/buildbot/plugins/__init__.py @@ -26,7 +26,7 @@ from buildbot.plugins.db import get_plugins __all__ = [ 'changes', 'schedulers', 'steps', 'util...
added secrets plugin added secrets plugin at ln<I> and included it the plugin to the __all__ list to allow importing with *
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -16,10 +16,11 @@ This is the setup script, install it as any python package. .. note:: You will need to install PySide on your own """ from setuptools import setup, find_packages +execfile('pcef/version.py') setup( ...
Make setup.py read the version from pcef/version.py
py
diff --git a/psphere/managedobjects.py b/psphere/managedobjects.py index <HASH>..<HASH> 100644 --- a/psphere/managedobjects.py +++ b/psphere/managedobjects.py @@ -562,6 +562,12 @@ class VirtualMachine(ManagedEntity): self.storage = None self.summary = None + @classmethod + def from_server(cls,...
Use classmethod to initialise from server
py
diff --git a/pyof/v0x01/common/phy_port.py b/pyof/v0x01/common/phy_port.py index <HASH>..<HASH> 100644 --- a/pyof/v0x01/common/phy_port.py +++ b/pyof/v0x01/common/phy_port.py @@ -60,7 +60,7 @@ class PortState(enum.Enum): OFPPS_STP_LEARN = 1 << 8 OFPPS_STP_FORWARD = 2 << 8 OFPPS_STP_BLOCK = 3 << 8 - OF...
This commit Closes #7 issue. Removed the last physical port state
py
diff --git a/testing/test_setuptools_support.py b/testing/test_setuptools_support.py index <HASH>..<HASH> 100644 --- a/testing/test_setuptools_support.py +++ b/testing/test_setuptools_support.py @@ -5,9 +5,14 @@ import sys import os import subprocess import pytest -pytestmark = pytest.mark.skipif( - "sys.version_...
mark setuptools integration tests as xfail until a windows user can find the reason
py
diff --git a/vertica_python/__init__.py b/vertica_python/__init__.py index <HASH>..<HASH> 100644 --- a/vertica_python/__init__.py +++ b/vertica_python/__init__.py @@ -25,6 +25,6 @@ threadsafety = 1 paramstyle = 'named' # WHERE name=:name -def connect(options): +def connect(**kwargs): """Opens a new connectio...
Use kwargs This doesn't follow the suggestion in PEP <I> (<URL>) for the connect method to utilized keyword arguments. This may seem pedantic, but in fact this will raise errors when trying to use a generic connect method. For example, if you'd like a method to connect to both MySQL and Vertica, you will get errors.
py
diff --git a/src/toil/test/jobStores/jobStoreTest.py b/src/toil/test/jobStores/jobStoreTest.py index <HASH>..<HASH> 100644 --- a/src/toil/test/jobStores/jobStoreTest.py +++ b/src/toil/test/jobStores/jobStoreTest.py @@ -951,7 +951,7 @@ class AWSJobStoreTest(AbstractJobStoreTest.Test): self.assertEqu...
Refer to bucket owned by ucsc-bd2k account
py
diff --git a/dagobah/daemon/api.py b/dagobah/daemon/api.py index <HASH>..<HASH> 100644 --- a/dagobah/daemon/api.py +++ b/dagobah/daemon/api.py @@ -394,7 +394,7 @@ def edit_task(): abort(400) # validate host - if args.get('hostname') not in dagobah.get_hosts(): + if 'hostname' in args and args.get(...
Stop blowing away hostname if it is not provided
py
diff --git a/telemetry/telemetry/core/backends/chrome/chrome_browser_backend.py b/telemetry/telemetry/core/backends/chrome/chrome_browser_backend.py index <HASH>..<HASH> 100644 --- a/telemetry/telemetry/core/backends/chrome/chrome_browser_backend.py +++ b/telemetry/telemetry/core/backends/chrome/chrome_browser_backend....
Telemetry: expands exception messages. On some crashes, Telemetry were hiding useful information about the underlying exception. Bubble it up. BUG=<I> Review URL: <URL>
py
diff --git a/pyang/statements.py b/pyang/statements.py index <HASH>..<HASH> 100644 --- a/pyang/statements.py +++ b/pyang/statements.py @@ -1649,6 +1649,7 @@ def v_reference_list(ctx, stmt): key.remove(f) if len(key) == 0: err_add(ctx.errors, u.pos, 'UNIQUE_IS_KEY', ())...
keep track of the leafs a unique stmt points to
py
diff --git a/glitter/page.py b/glitter/page.py index <HASH>..<HASH> 100644 --- a/glitter/page.py +++ b/glitter/page.py @@ -272,6 +272,12 @@ class Glitter(object): @cached_property def default_blocks(self): + """ + Return a list of default block tuples (appname.ModelName, verbose name). + + ...
Add some docs for default_blocks
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -594,7 +594,7 @@ if PACKAGE_NAME == 'apache-airflow': # A list of patterns to ignore when finding files autoapi_ignore = [ - 'airflow/configuration/', + '*/airflow/_vendor/*', '*/example_dags/*',...
Ignore airflow/_vendor for building python API docs (#<I>) On <I> it's slower than needed, but on Py <I> it causes a doc build error (on a type comment of all things)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -145,6 +145,6 @@ setup( # so even if a local contextvars module is installed, # the one from the standard library will be used. install_requires=[ - 'contextvars;python_version<"3.9"' + 'contextvar...
Don't install contextvars on Python <I>+ (#<I>)
py
diff --git a/salt/sdb/confidant.py b/salt/sdb/confidant.py index <HASH>..<HASH> 100644 --- a/salt/sdb/confidant.py +++ b/salt/sdb/confidant.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ An SDB module for getting credentials from confidant. @@ -35,13 +34,10 @@ The module can be configured via sdb in the minion con...
Drop Py2 and six on salt/sdb/confidant.py
py
diff --git a/gbdxtools/images/meta.py b/gbdxtools/images/meta.py index <HASH>..<HASH> 100644 --- a/gbdxtools/images/meta.py +++ b/gbdxtools/images/meta.py @@ -179,7 +179,7 @@ class GeoImage(Container): def orthorectify(self, **kwargs): # TODO: potientially reproject data = self.read() - xm...
making ortho a method on geoimage
py
diff --git a/test/test.py b/test/test.py index <HASH>..<HASH> 100755 --- a/test/test.py +++ b/test/test.py @@ -73,15 +73,15 @@ class TestTropoPython(unittest.TestCase): """ tropo = Tropo() - tropo.conference(self.ID, playTones=True,terminator="#", - name="Staff Meeting", mut...
Removed terminator object from tests in test.py
py
diff --git a/client/protocols/backup.py b/client/protocols/backup.py index <HASH>..<HASH> 100644 --- a/client/protocols/backup.py +++ b/client/protocols/backup.py @@ -212,7 +212,7 @@ class BackupProtocol(models.Protocol): elif not message_list: print('{action}... 100% complete'.format(action=actio...
don't print error for revisions (#<I>)
py
diff --git a/ykman/driver_ccid.py b/ykman/driver_ccid.py index <HASH>..<HASH> 100644 --- a/ykman/driver_ccid.py +++ b/ykman/driver_ccid.py @@ -87,6 +87,9 @@ def _pid_from_name(name): if t.name in name: transports += t + if 'U2F' in name: + transports += TRANSPORT.FIDO + key_type =...
Add fix for U2F -> FIDO transport rename
py
diff --git a/steam/webauth.py b/steam/webauth.py index <HASH>..<HASH> 100644 --- a/steam/webauth.py +++ b/steam/webauth.py @@ -112,7 +112,7 @@ class WebAuth(object): timeout=15, data={ 'username': usern...
fix: webauth `donotcache` was mispelled
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ from setuptools import setup setup( name="livejson", py_modules=["livejson"], - version="1.0.0", + version="1.1.0", description="Bind Python objects to JSON files", long_description=("An...
Move to <I> Allows changing base data type
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -26,10 +26,10 @@ setup( tests_require=test_requirements, install_requires=[ 'setuptools>=0.8', - 'schematics>=0.8.0-alpha', + 'schematics>=0.9.1', 'CouchDB' ] + test_requirements,...
updated setup.py to point at j2labs/schematics
py
diff --git a/pywb/rewrite/regex_rewriters.py b/pywb/rewrite/regex_rewriters.py index <HASH>..<HASH> 100644 --- a/pywb/rewrite/regex_rewriters.py +++ b/pywb/rewrite/regex_rewriters.py @@ -128,7 +128,7 @@ class JSLinkAndLocationRewriter(JSLinkOnlyRewriter): (r'(?<=document\.)referrer', RegexRewriter.add_pre...
regexrewrite: fix rewrite for 'top'
py
diff --git a/fault/tester.py b/fault/tester.py index <HASH>..<HASH> 100644 --- a/fault/tester.py +++ b/fault/tester.py @@ -225,8 +225,7 @@ class Tester: loop action object maintains a references to the return Tester's `actions` list. """ - loop_tester = LoopTester(self.circuit, self.cl...
Remove old format string logic from loop tester
py
diff --git a/bcbio/pipeline/main.py b/bcbio/pipeline/main.py index <HASH>..<HASH> 100644 --- a/bcbio/pipeline/main.py +++ b/bcbio/pipeline/main.py @@ -273,12 +273,12 @@ class Variant2Pipeline(AbstractPipeline): run_parallel = parallel_runner(parallel, dirs, config) logger.info("Timing: variant...
Reorder validation step to work with multiple variant callers
py
diff --git a/mpop/satin/modis_level2.py b/mpop/satin/modis_level2.py index <HASH>..<HASH> 100644 --- a/mpop/satin/modis_level2.py +++ b/mpop/satin/modis_level2.py @@ -42,7 +42,8 @@ import mpop.channel EOS_SATELLITE = {'aqua': 'eos2', 'modisa': 'eos2', - 'terra': 'eos1'} + ...
Added modist as valid name for 'eos1'
py
diff --git a/source/rafcon/mvc/mygaphas/tools.py b/source/rafcon/mvc/mygaphas/tools.py index <HASH>..<HASH> 100644 --- a/source/rafcon/mvc/mygaphas/tools.py +++ b/source/rafcon/mvc/mygaphas/tools.py @@ -198,7 +198,11 @@ class HoverItemTool(HoverTool): distance = state_v.border_width / 2. * view.get_zoo...
Prevent hover from splitting connections A bug caused connections being split when hovering them with the cursor. This is now fixed by temporarily unsetting the focused item when querying the handle of a connection.
py
diff --git a/tests/conftest.py b/tests/conftest.py index <HASH>..<HASH> 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -560,7 +560,8 @@ def pytest_runtest_setup(item): def pytest_collection_modifyitems(session, config, items): - for item in items: + skip_by_version = [] + for item in items[:]: ...
deselect 'skipped' test items to make less noise
py
diff --git a/more_itertools/more.py b/more_itertools/more.py index <HASH>..<HASH> 100644 --- a/more_itertools/more.py +++ b/more_itertools/more.py @@ -350,19 +350,19 @@ def side_effect(fn, iterable): Examples: >>> from more_itertools import take, consume, side_effect - >>> iterable = take(3, rang...
Make the examples a bit more useful.
py
diff --git a/phy/apps/template/gui.py b/phy/apps/template/gui.py index <HASH>..<HASH> 100644 --- a/phy/apps/template/gui.py +++ b/phy/apps/template/gui.py @@ -134,6 +134,7 @@ class TemplateController(object): cluster_groups=cluster_groups, cluster_metric...
Default cluster quality: amplitude
py
diff --git a/build_libtcod.py b/build_libtcod.py index <HASH>..<HASH> 100644 --- a/build_libtcod.py +++ b/build_libtcod.py @@ -71,10 +71,13 @@ if 'linux' in sys.platform: if sys.platform == 'darwin': #sources += walk_sources('dependencies/SDL-1.2.15/src/') #include_dirs += ['dependencies/SDL-1.2.15/include/S...
try linking to dylib directly
py
diff --git a/petl/io/sources.py b/petl/io/sources.py index <HASH>..<HASH> 100644 --- a/petl/io/sources.py +++ b/petl/io/sources.py @@ -395,7 +395,7 @@ def get_reader(protocol): ''' Retrieve the handler responsible for reading from a remote protocol. - .. versionadded:: 1.6.1 + .. versionadded:: 1.6.0 ...
only expose helpers that are used by fsspec
py
diff --git a/generator/java.stoneg.py b/generator/java.stoneg.py index <HASH>..<HASH> 100644 --- a/generator/java.stoneg.py +++ b/generator/java.stoneg.py @@ -2562,6 +2562,7 @@ class JavaCodeGenerationInstance(object): # mark public j.update_data_type_visibility(data_type_fq_name, Vi...
Fixed serializer visiblity issue.
py
diff --git a/holoviews/ipython/archive.py b/holoviews/ipython/archive.py index <HASH>..<HASH> 100644 --- a/holoviews/ipython/archive.py +++ b/holoviews/ipython/archive.py @@ -45,7 +45,7 @@ class NotebookArchive(FileArchive): display hooks and automatically adds a notebook HTML snapshot to the archive upon exp...
Updated default exporter definition in NotebookArchive
py
diff --git a/can/interfaces/usb2can/usb2canInterface.py b/can/interfaces/usb2can/usb2canInterface.py index <HASH>..<HASH> 100644 --- a/can/interfaces/usb2can/usb2canInterface.py +++ b/can/interfaces/usb2can/usb2canInterface.py @@ -112,7 +112,7 @@ class Usb2canBus(BusABC): deviceID = serial() # g...
typo in usb2canInterface.py the function get() of a dictionary get(key[, default]) doesn't support an argument named 'd'
py
diff --git a/nsq/backoff_timer.py b/nsq/backoff_timer.py index <HASH>..<HASH> 100644 --- a/nsq/backoff_timer.py +++ b/nsq/backoff_timer.py @@ -27,13 +27,17 @@ class BackoffTimer(object): self.short_interval = Decimal(0) self.long_interval = Decimal(0) + self.update_interval() def succe...
optimize BackoffTimer by caching and short-circuiting cache the calculation+conversion for get_interval() if get_interval() is 0, then success() can be short-circuited
py
diff --git a/vlcp/service/sdn/arpresponder.py b/vlcp/service/sdn/arpresponder.py index <HASH>..<HASH> 100644 --- a/vlcp/service/sdn/arpresponder.py +++ b/vlcp/service/sdn/arpresponder.py @@ -317,8 +317,8 @@ class ARPUpdater(FlowUpdater): for ip, mac, islocal, port, broadcast in send_arps: ...
bug fix: only send ARP entry to ports in the same network
py
diff --git a/peep.py b/peep.py index <HASH>..<HASH> 100755 --- a/peep.py +++ b/peep.py @@ -172,7 +172,7 @@ def version_of_archive(filename, package_name): if filename.endswith(ext): filename = filename[:-len(ext)] break - if not filename.startswith(package_name): + if not filena...
Pip replaces '_' in package names with '-' so peep needs to do so in the archive file name version detection.
py
diff --git a/manticore/ethereum/detectors.py b/manticore/ethereum/detectors.py index <HASH>..<HASH> 100644 --- a/manticore/ethereum/detectors.py +++ b/manticore/ethereum/detectors.py @@ -2,7 +2,7 @@ import hashlib import logging from contextlib import contextmanager -from ..core.smtlib import Operators, Constant +f...
Concretize `pc` if possible to resolve issue #<I> (#<I>)
py
diff --git a/src/googleclouddebugger/imphook2.py b/src/googleclouddebugger/imphook2.py index <HASH>..<HASH> 100644 --- a/src/googleclouddebugger/imphook2.py +++ b/src/googleclouddebugger/imphook2.py @@ -249,10 +249,13 @@ def _GenerateNames(name, fromlist, globals): # names of real modules. for from_entry in froml...
Fix some more unit tests under Python 3. ------------- Created by MOE: <URL>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ setup( 'Programming Language :: Python :: 2.7', 'License :: OSI Approved :: GNU Affero General Public License v3' ], - packages=find_packages(exclude=['urbansimd', '*.tests']), + ...
Remove urbansimd from excluded packages.
py
diff --git a/spyder/widgets/fileswitcher.py b/spyder/widgets/fileswitcher.py index <HASH>..<HASH> 100644 --- a/spyder/widgets/fileswitcher.py +++ b/spyder/widgets/fileswitcher.py @@ -272,6 +272,8 @@ class FileSwitcher(QDialog): self.setWindowOpacity(0.95) self.edit.installEventFilter(self.filter) ...
Show a place holder text in the switcher text field to explain users how to use it.
py
diff --git a/mapchete/formats/default/gtiff.py b/mapchete/formats/default/gtiff.py index <HASH>..<HASH> 100644 --- a/mapchete/formats/default/gtiff.py +++ b/mapchete/formats/default/gtiff.py @@ -117,11 +117,11 @@ class OutputData(base.OutputData): process_tile : ``BufferedTile`` must be member of ...
don't create output directory if data is empty
py
diff --git a/src/ossos-pipeline/ossos/downloads/cutouts/grid.py b/src/ossos-pipeline/ossos/downloads/cutouts/grid.py index <HASH>..<HASH> 100644 --- a/src/ossos-pipeline/ossos/downloads/cutouts/grid.py +++ b/src/ossos-pipeline/ossos/downloads/cutouts/grid.py @@ -38,3 +38,9 @@ class CutoutGrid(object): def is_fille...
Implemented reset_source_location for CutoutGrid.
py
diff --git a/yandex_translate/tests.py b/yandex_translate/tests.py index <HASH>..<HASH> 100755 --- a/yandex_translate/tests.py +++ b/yandex_translate/tests.py @@ -6,4 +6,4 @@ from yandex_translate import * translate = YandexTranslate() print('Current languages:', translate.langs) print('Detect language:', translate....
Another pep8 perfomance
py