diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,13 +1,10 @@
-from setuptools import setup
+from setuptools import find_packages
-setup(
+setup_params = dict(
name="pmxbot",
version="1100b6",
- packages=["pmxbot", "pmxbotweb", "pmxbot.popquotes"],
- package_data={
-... | Updated setup script to find packages automatically. Fixes issue where popquotes.sqlite was not being included. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -26,7 +26,7 @@ setup(
packages=['sanic'],
platforms='any',
install_requires=[
- 'uvloop>=0.5.3',
+ 'uvloop>=0.5.3;platform_system!="Windows"',
'httptools>=0.0.9',
'ujson>=1.35',
... | Don't ask for uvloop on windows This is a tricky issue, but essentially uvloop is unavailable on windows. This means for windows users, we have to install Sanic with no requirements, and then manually specify all requirements apart from uvloop. However, Sanic will work with standard asyncio event loop. So, I propos... | py |
diff --git a/testsuite/test_provider.py b/testsuite/test_provider.py
index <HASH>..<HASH> 100644
--- a/testsuite/test_provider.py
+++ b/testsuite/test_provider.py
@@ -519,6 +519,7 @@ class OAuth2ProviderTestCase(InvenioTestCase):
# Access token is not valid for this scope
r = self.client.get(
... | oauth2server: missing access token in test case * Fixes missing access token in test case. (closes #<I>) | py |
diff --git a/glances/plugins/glances_processlist.py b/glances/plugins/glances_processlist.py
index <HASH>..<HASH> 100644
--- a/glances/plugins/glances_processlist.py
+++ b/glances/plugins/glances_processlist.py
@@ -44,14 +44,6 @@ def convert_timedelta(delta):
def split_cmdline(cmdline):
"""Return path, cmd and ... | Remove dirty work arround for issue #<I> because PsUtil issue #<I> is now solved on PSUtil <I> and higher | py |
diff --git a/django_mailbox/models.py b/django_mailbox/models.py
index <HASH>..<HASH> 100644
--- a/django_mailbox/models.py
+++ b/django_mailbox/models.py
@@ -724,7 +724,10 @@ class MessageAttachment(models.Model):
"""Returns the original filename of this attachment."""
file_name = self._get_rehydrate... | Return unicode-converted filename only if a response was returned. | py |
diff --git a/hydpy/core/modeltools.py b/hydpy/core/modeltools.py
index <HASH>..<HASH> 100644
--- a/hydpy/core/modeltools.py
+++ b/hydpy/core/modeltools.py
@@ -8,8 +8,7 @@ from hydpy import pub
from hydpy.core import objecttools
-class MetaModel(type):
-
+class MetaModelType(type):
def __new__(cls, name, paren... | make the Model metaclass approach Python 3 compatible | py |
diff --git a/stagpy/field.py b/stagpy/field.py
index <HASH>..<HASH> 100644
--- a/stagpy/field.py
+++ b/stagpy/field.py
@@ -151,9 +151,9 @@ def plot_scalar(step, var, scaling=None, **extra):
rotation='horizontal', va='center')
if step.geom.spherical or conf.plot.ratio is None:
plt.axis(... | Annotate axies when ratio is set | py |
diff --git a/superset/migrations/versions/18532d70ab98_fix_table_unique_constraint_in_mysql.py b/superset/migrations/versions/18532d70ab98_fix_table_unique_constraint_in_mysql.py
index <HASH>..<HASH> 100644
--- a/superset/migrations/versions/18532d70ab98_fix_table_unique_constraint_in_mysql.py
+++ b/superset/migrations... | Fix alembic migration (#<I>) | py |
diff --git a/fedmsg/commands/hub.py b/fedmsg/commands/hub.py
index <HASH>..<HASH> 100644
--- a/fedmsg/commands/hub.py
+++ b/fedmsg/commands/hub.py
@@ -1,12 +1,30 @@
import fedmsg
from fedmsg.commands import command
-extra_args = []
+extra_args = [
+ ([], {
+ 'dest': 'name',
+ 'metavar': "NAME",
+ ... | Attempt to wrap moksha-hub with fedmsg-hub. | py |
diff --git a/tcex/app_config_object/templates.py b/tcex/app_config_object/templates.py
index <HASH>..<HASH> 100644
--- a/tcex/app_config_object/templates.py
+++ b/tcex/app_config_object/templates.py
@@ -313,8 +313,14 @@ class DownloadTemplates(TemplateBase):
overwrite='prompt',
default_choice=... | Updated templates.py to include app_lib.py for external_ingress template | py |
diff --git a/seed_control_interface/__init__.py b/seed_control_interface/__init__.py
index <HASH>..<HASH> 100644
--- a/seed_control_interface/__init__.py
+++ b/seed_control_interface/__init__.py
@@ -1,2 +1,2 @@
-__version__ = '0.9.6'
+__version__ = '0.9.7'
VERSION = __version__ | Bumped version to <I> | py |
diff --git a/lib/bibformat_engine.py b/lib/bibformat_engine.py
index <HASH>..<HASH> 100644
--- a/lib/bibformat_engine.py
+++ b/lib/bibformat_engine.py
@@ -488,7 +488,8 @@ def eval_format_element(format_element, bfo, parameters={}, verbose=0):
suffix = parameters.get('suffix', "")
default_value = parameters.ge... | Fixed an uninitialized variable in case of exception. | py |
diff --git a/juju/model.py b/juju/model.py
index <HASH>..<HASH> 100644
--- a/juju/model.py
+++ b/juju/model.py
@@ -2402,9 +2402,11 @@ class Model:
@param offer_name: over ride the offer name to help the consumer
"""
controller = await self.get_controller()
- return await controller.cre... | Close the connection spawned for create_offer after use | py |
diff --git a/update_version_from_git.py b/update_version_from_git.py
index <HASH>..<HASH> 100644
--- a/update_version_from_git.py
+++ b/update_version_from_git.py
@@ -76,7 +76,7 @@ def prerelease_version():
assert len(initpy_ver.split('.')) in [3, 4], 'moto/__init__.py version should be like 0.0.2 or 0.0.2.dev'
... | Simplify version numbers for dev to make pypi happy. | py |
diff --git a/alot/db/utils.py b/alot/db/utils.py
index <HASH>..<HASH> 100644
--- a/alot/db/utils.py
+++ b/alot/db/utils.py
@@ -55,6 +55,7 @@ def add_signature_headers(mail, sigs, error_msg):
sig_from = key.uids[0].uid
except:
sig_from = sigs[0].fpr
+ uid_trusted = False... | Define local var in all code paths. | py |
diff --git a/dbt/adapters/bigquery/impl.py b/dbt/adapters/bigquery/impl.py
index <HASH>..<HASH> 100644
--- a/dbt/adapters/bigquery/impl.py
+++ b/dbt/adapters/bigquery/impl.py
@@ -495,7 +495,7 @@ class BigQueryAdapter(PostgresAdapter):
client = conn.handle
with cls.exception_handler(config, 'list dat... | Include datasets with underscores when listing BigQuery datasets | py |
diff --git a/tests/test_stereonet_math.py b/tests/test_stereonet_math.py
index <HASH>..<HASH> 100644
--- a/tests/test_stereonet_math.py
+++ b/tests/test_stereonet_math.py
@@ -210,10 +210,10 @@ class TestAngularDistance:
def test_directional(self):
first, second = smath.line(30, 270), smath.line(40, 90)
... | angular_distance returns distances in radians, not degrees | py |
diff --git a/acceptancetests/assess_upgrade_series.py b/acceptancetests/assess_upgrade_series.py
index <HASH>..<HASH> 100755
--- a/acceptancetests/assess_upgrade_series.py
+++ b/acceptancetests/assess_upgrade_series.py
@@ -39,7 +39,6 @@ def assess_juju_upgrade_series(client, args):
reboot_machine(client, target_ma... | Removes set_application_series command from assess_upgrade_series test. | py |
diff --git a/jira/client.py b/jira/client.py
index <HASH>..<HASH> 100644
--- a/jira/client.py
+++ b/jira/client.py
@@ -273,11 +273,12 @@ class JIRA(object):
def dashboards(self, filter=None, startAt=0, maxResults=20):
"""
- Return a list of Dashboard resources.
+ Return a ResultList of Das... | Update docs with the new ResultList return type | py |
diff --git a/dragnet/model_training.py b/dragnet/model_training.py
index <HASH>..<HASH> 100644
--- a/dragnet/model_training.py
+++ b/dragnet/model_training.py
@@ -198,7 +198,7 @@ def accuracy_auc(y, ypred, weights=None):
def evaluate_models_tokens(datadir, dragnet_model, figname_root=None,
- tokenizer=simple_to... | Pass in cetr flag to read gold standard | py |
diff --git a/spyder/api/panel.py b/spyder/api/panel.py
index <HASH>..<HASH> 100644
--- a/spyder/api/panel.py
+++ b/spyder/api/panel.py
@@ -133,8 +133,7 @@ class Panel(QWidget, EditorExtension):
painter = QPainter(self)
painter.fillRect(event.rect(), self._background_brush)
else:
- ... | Editor: Prevent error when switching layouts | py |
diff --git a/src/rinoh/image.py b/src/rinoh/image.py
index <HASH>..<HASH> 100644
--- a/src/rinoh/image.py
+++ b/src/rinoh/image.py
@@ -72,7 +72,7 @@ class Filename(str):
"""str subclass that provides system-independent path comparison"""
def __eq__(self, other):
- return posix_path(self) == posix_pat... | Fix infinite recursion in Filename.__eq__ | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -38,9 +38,9 @@ setup(
zip_safe=False,
include_package_data=True,
install_requires=[
- 'virtualchain==0.0.8',
+ 'virtualchain==0.0.9',
'keychain==0.1.4',
- 'blockstack-client==0.0.12... | require latest virtualchain and blockstack client | py |
diff --git a/salt/grains/core.py b/salt/grains/core.py
index <HASH>..<HASH> 100644
--- a/salt/grains/core.py
+++ b/salt/grains/core.py
@@ -142,6 +142,25 @@ def _virtual(osdata):
# Provides:
# virtual
grains = {'virtual': 'physical'}
+ try:
+ if not subprocess.check_call( "lspci", stdout = sub... | Adding VirtualBox and VMware support for Linux. Should work for other OSes. | py |
diff --git a/MAVProxy/modules/mavproxy_map/mp_slipmap_ui.py b/MAVProxy/modules/mavproxy_map/mp_slipmap_ui.py
index <HASH>..<HASH> 100644
--- a/MAVProxy/modules/mavproxy_map/mp_slipmap_ui.py
+++ b/MAVProxy/modules/mavproxy_map/mp_slipmap_ui.py
@@ -577,13 +577,12 @@ class MPSlipMapPanel(wx.Panel):
c = event.GetU... | mp_slipmap_ui: propogate events appropriately .Skip() means to skip *this* handler, not further handling | py |
diff --git a/aiopvapi/resources/shade.py b/aiopvapi/resources/shade.py
index <HASH>..<HASH> 100644
--- a/aiopvapi/resources/shade.py
+++ b/aiopvapi/resources/shade.py
@@ -107,6 +107,10 @@ class BaseShade(ApiResource):
"""Jog the shade."""
await self.request.put(self._resource_path, {"shade": {"motion"... | Add calibrate and refreshBattery endpoints | py |
diff --git a/colin/checks/labels.py b/colin/checks/labels.py
index <HASH>..<HASH> 100644
--- a/colin/checks/labels.py
+++ b/colin/checks/labels.py
@@ -188,7 +188,7 @@ class IoK8sDisplayNameLabelCheck(LabelAbstractCheck):
" of an image inside the Image / Repo Overview page.",
... | Correct the 'labels' attribute of the check | py |
diff --git a/holoviews/plotting/bokeh/element.py b/holoviews/plotting/bokeh/element.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/bokeh/element.py
+++ b/holoviews/plotting/bokeh/element.py
@@ -845,6 +845,6 @@ class OverlayPlot(GenericOverlayPlot, ElementPlot):
"were not initialized c... | Ensure that empty overlay frame does not break | py |
diff --git a/lib/stsci/tools/stpyfits.py b/lib/stsci/tools/stpyfits.py
index <HASH>..<HASH> 100644
--- a/lib/stsci/tools/stpyfits.py
+++ b/lib/stsci/tools/stpyfits.py
@@ -142,6 +142,7 @@ class _ConstantValueImageBaseHDU(pyfits.hdu.image._ImageBaseHDU):
super(_ConstantValueImageBaseHDU, self).__init__(
... | The .size() method on HDUs is a property now, so updating to reflect that so this doesn't break with the PyFITS changes from trunk git-svn-id: <URL> | py |
diff --git a/djangocms_spa/views.py b/djangocms_spa/views.py
index <HASH>..<HASH> 100644
--- a/djangocms_spa/views.py
+++ b/djangocms_spa/views.py
@@ -85,11 +85,17 @@ class SpaApiView(APIView):
@cache_view
def dispatch(self, request, **kwargs):
# Take the language from the URL kwarg and set it as req... | [language_activation] Try using request language rather then from the url | py |
diff --git a/krypy/utils.py b/krypy/utils.py
index <HASH>..<HASH> 100644
--- a/krypy/utils.py
+++ b/krypy/utils.py
@@ -455,6 +455,12 @@ def arnoldi(A, v, maxiter=None, ortho='mgs', inner_product=ip):
Computes V and H such that :math:`AV_{n}=V_{n+1}\\underline{H}_n`
:param ortho: may be 'mgs' (Modified Gram-... | add comment on Householder + non-Euclidean IP | py |
diff --git a/serfclient/client.py b/serfclient/client.py
index <HASH>..<HASH> 100644
--- a/serfclient/client.py
+++ b/serfclient/client.py
@@ -3,6 +3,7 @@ try:
except ImportError:
from connection import SerfConnection
+
class SerfClient(object):
def __init__(self, host='localhost', port=7373, timeout=3):
... | Pep8: blank links fix serfclient/client.py:6:1: E<I> expected 2 blank lines, found 1 | py |
diff --git a/djstripe/fields.py b/djstripe/fields.py
index <HASH>..<HASH> 100644
--- a/djstripe/fields.py
+++ b/djstripe/fields.py
@@ -68,7 +68,8 @@ class StripeFieldMixin(object):
except (KeyError, TypeError):
if self.stripe_required:
raise FieldError("Required stripe... | made field error handling a bit better | py |
diff --git a/bddrest/documentary/documenter.py b/bddrest/documentary/documenter.py
index <HASH>..<HASH> 100644
--- a/bddrest/documentary/documenter.py
+++ b/bddrest/documentary/documenter.py
@@ -58,10 +58,13 @@ class Documenter:
info = self.fieldinfo(call.url, call.verb, k) \
if se... | Adding required and nullable fields for form table, closes #<I> and also closes #<I> | py |
diff --git a/image_scraper/mains.py b/image_scraper/mains.py
index <HASH>..<HASH> 100644
--- a/image_scraper/mains.py
+++ b/image_scraper/mains.py
@@ -56,7 +56,7 @@ def console_main():
break
pbar.finish()
- print "\nDone!\nDownloaded %s images" % (count-failed-over_max_filesize)
+ print "\nDon... | Printing number of failed downloads as well. | py |
diff --git a/centinel/backend.py b/centinel/backend.py
index <HASH>..<HASH> 100644
--- a/centinel/backend.py
+++ b/centinel/backend.py
@@ -119,6 +119,7 @@ def sync(config):
logging.error("Unable to send result file: %s" % str(e))
if time.time() - start > config['server']['total_timeout']:
... | ensured that we break out when over time | py |
diff --git a/tests/test_ellipsoid.py b/tests/test_ellipsoid.py
index <HASH>..<HASH> 100644
--- a/tests/test_ellipsoid.py
+++ b/tests/test_ellipsoid.py
@@ -22,6 +22,7 @@ def test_sample():
for i in range(nsim):
R.append(mu.sample()[0])
R = np.array(R)
+ assert (all([mu.contains(_) for _ in R]))
... | add additional ellipsoidal test | py |
diff --git a/coaster/views/decorators.py b/coaster/views/decorators.py
index <HASH>..<HASH> 100644
--- a/coaster/views/decorators.py
+++ b/coaster/views/decorators.py
@@ -545,7 +545,7 @@ def cors(origins,
def wrapper(*args, **kwargs):
origin = request.headers.get('Origin')
if request.... | Fix HTTP status codes for invalid method and unauthorized access (#<I>) | py |
diff --git a/plexapi/base.py b/plexapi/base.py
index <HASH>..<HASH> 100644
--- a/plexapi/base.py
+++ b/plexapi/base.py
@@ -204,7 +204,7 @@ class PlexObject(object):
data = self._server.query(ekey, params=url_kw)
items = self.findItems(data, cls, ekey, **kwargs)
- librarySectionID = data.attri... | Cast librarySectionID to int | py |
diff --git a/ladybug/_datacollectionbase.py b/ladybug/_datacollectionbase.py
index <HASH>..<HASH> 100644
--- a/ladybug/_datacollectionbase.py
+++ b/ladybug/_datacollectionbase.py
@@ -629,9 +629,10 @@ class BaseCollection(object):
elif isinstance(dat_type, typ_clss._time_aggregated_type):
... | style(datacollection): Improve error message in the event of no type | py |
diff --git a/sh.py b/sh.py
index <HASH>..<HASH> 100644
--- a/sh.py
+++ b/sh.py
@@ -1674,6 +1674,8 @@ class StreamWriter(object):
# support
try:
chunk = self.get_chunk()
+ if chunk is None:
+ raise DoneReadingForever
except DoneReadingForever:
... | edge case where our stdin callback doesn't return anything | py |
diff --git a/openstack_dashboard/dashboards/project/volumes/volumes/tests.py b/openstack_dashboard/dashboards/project/volumes/volumes/tests.py
index <HASH>..<HASH> 100644
--- a/openstack_dashboard/dashboards/project/volumes/volumes/tests.py
+++ b/openstack_dashboard/dashboards/project/volumes/volumes/tests.py
@@ -955,7... | Stubout cinder.tenant_absolute_limits in cinder test To render dropdown actions to detail page, allowed() method in the volume table is called, so a method called in allowed() needs to be stubout. Change-Id: Ib<I>eee0fa2c8b<I>e1e<I>fcd1bdb0f<I>bc1 Closes-Bug: #<I> | py |
diff --git a/pyt/vulnerability_log.py b/pyt/vulnerability_log.py
index <HASH>..<HASH> 100644
--- a/pyt/vulnerability_log.py
+++ b/pyt/vulnerability_log.py
@@ -25,7 +25,7 @@ class VulnerabilityLog(object):
print('%s vulnerabilities found:' % number_of_vulnerabilities)
for i, vulnera... | more newlines in vuln presentation | py |
diff --git a/ansible_runner/runner_config.py b/ansible_runner/runner_config.py
index <HASH>..<HASH> 100644
--- a/ansible_runner/runner_config.py
+++ b/ansible_runner/runner_config.py
@@ -732,25 +732,8 @@ class RunnerConfig(object):
new_args.extend(["--ipc=host"])
- # These directories need t... | Simplify by mounting the private_data_dir | py |
diff --git a/fabfile/eg.py b/fabfile/eg.py
index <HASH>..<HASH> 100644
--- a/fabfile/eg.py
+++ b/fabfile/eg.py
@@ -24,3 +24,9 @@ def basic_tagger():
def cnn_tagger():
with virtualenv(VENV_DIR), lcd(PWD), shell_env(PYTHONPATH=PWD):
local('python examples/cnn_tagger.py')
+
+
+@task
+def spacy_tagger():
+ ... | Add spacy_tagger to fabfile | py |
diff --git a/tests/device_tests/test_op_return.py b/tests/device_tests/test_op_return.py
index <HASH>..<HASH> 100644
--- a/tests/device_tests/test_op_return.py
+++ b/tests/device_tests/test_op_return.py
@@ -65,6 +65,7 @@ class TestOpReturn(common.TrezorTest):
proto.TxRequest(request_type=proto_types.TX... | device_tests: op_return now requires confirmation by user | py |
diff --git a/Scout2.py b/Scout2.py
index <HASH>..<HASH> 100755
--- a/Scout2.py
+++ b/Scout2.py
@@ -176,6 +176,9 @@ def main(args):
aws_config['services'][service]['violations'][rule]['service'] = service
except Exception as e:
printError('Failed to process rule defined in ... | If rule processing fails, create flagged and checked items keys and set values to 0 | py |
diff --git a/insights/specs/insights_archive.py b/insights/specs/insights_archive.py
index <HASH>..<HASH> 100644
--- a/insights/specs/insights_archive.py
+++ b/insights/specs/insights_archive.py
@@ -74,10 +74,10 @@ class InsightsArchiveSpecs(Specs):
installed_rpms = head(all_installed_rpms)
hostname = first_o... | Update httpd_V and httpd_M to make it compatible with other httpd (#<I>) * should compatible with httpd<I>-httpd and jbcs-httpd<I>-httpd | py |
diff --git a/python/dllib/src/bigdl/dllib/keras/utils.py b/python/dllib/src/bigdl/dllib/keras/utils.py
index <HASH>..<HASH> 100644
--- a/python/dllib/src/bigdl/dllib/keras/utils.py
+++ b/python/dllib/src/bigdl/dllib/keras/utils.py
@@ -74,7 +74,7 @@ def to_bigdl_metric(metric):
elif metric == "mae":
return... | Update default value of AUC to <I> (#<I>) * update * typo | py |
diff --git a/modules/livestatus/livestatus_regenerator.py b/modules/livestatus/livestatus_regenerator.py
index <HASH>..<HASH> 100644
--- a/modules/livestatus/livestatus_regenerator.py
+++ b/modules/livestatus/livestatus_regenerator.py
@@ -24,7 +24,7 @@
# along with Shinken. If not, see <http://www.gnu.org/licenses/>.... | Fix : Livestatus regenerator crash on log debug is hints is None | py |
diff --git a/intranet/settings/base.py b/intranet/settings/base.py
index <HASH>..<HASH> 100644
--- a/intranet/settings/base.py
+++ b/intranet/settings/base.py
@@ -104,8 +104,8 @@ STATICFILES_FINDERS = (
)
AUTHENTICATION_BACKENDS = (
- "intranet.apps.auth.backends.KerberosAuthenticationBackend",
"intranet.ap... | master pwd before kerberos | py |
diff --git a/examples/synthesis_json.py b/examples/synthesis_json.py
index <HASH>..<HASH> 100755
--- a/examples/synthesis_json.py
+++ b/examples/synthesis_json.py
@@ -137,7 +137,7 @@ if __name__ == '__main__':
["n_neurites", "number", "axon", 1, None,
{"neurite_type": ezy.TreeType.axon}]]
... | Correct components input in synthesis_json | py |
diff --git a/secedgar/filings/cik_validator.py b/secedgar/filings/cik_validator.py
index <HASH>..<HASH> 100644
--- a/secedgar/filings/cik_validator.py
+++ b/secedgar/filings/cik_validator.py
@@ -17,6 +17,8 @@ class _CIKValidator(object):
.. versionadded:: 0.1.5
"""
+ # See Stack Overflow's answer to how-... | MAINT: Note on abbrev in class names | 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
@@ -76,8 +76,12 @@ PRECALC_MAP = dict(
classical_risk=['classical'],
classical_bcr=['classical'],
classical_damage=['classical'],
... | Relaxed the PRECALC_MAP for event_based calculators | py |
diff --git a/neo/api/JSONRPC/JsonRpcApi.py b/neo/api/JSONRPC/JsonRpcApi.py
index <HASH>..<HASH> 100644
--- a/neo/api/JSONRPC/JsonRpcApi.py
+++ b/neo/api/JSONRPC/JsonRpcApi.py
@@ -286,7 +286,7 @@ class JsonRpcApi(object):
appengine = ApplicationEngine.Run(script=script)
return {
- "script"... | Fix `script` value in JSON-RPC invokes * Fixed the `script` value being returned in JSON-RPC invokes. It was being double-encoded in HEX previously. Now, the proper script value is being returned consistent with the NEO reference implementation. | py |
diff --git a/gwpy/table/tests/test_table.py b/gwpy/table/tests/test_table.py
index <HASH>..<HASH> 100644
--- a/gwpy/table/tests/test_table.py
+++ b/gwpy/table/tests/test_table.py
@@ -107,7 +107,7 @@ class TestTable(object):
dtp = None
# use map() to support non-primitive types
... | gwpy.table: use list in test fixture | py |
diff --git a/src/dolo/compiler/compiler_python.py b/src/dolo/compiler/compiler_python.py
index <HASH>..<HASH> 100644
--- a/src/dolo/compiler/compiler_python.py
+++ b/src/dolo/compiler/compiler_python.py
@@ -51,7 +51,7 @@ class PythonCompiler(Compiler):
# Model equations
#
import numpy as np
- from numpy impor... | Added usual functions to python compiled files. | py |
diff --git a/climata/snotel/__init__.py b/climata/snotel/__init__.py
index <HASH>..<HASH> 100644
--- a/climata/snotel/__init__.py
+++ b/climata/snotel/__init__.py
@@ -16,7 +16,7 @@ _server = None
def get_server():
global _server
- if not _server:
+ if _server is None:
_server = Client(url).servic... | don't attempt to evaluate _server as boolean (fixes #<I>) | py |
diff --git a/flawless/server/service.py b/flawless/server/service.py
index <HASH>..<HASH> 100644
--- a/flawless/server/service.py
+++ b/flawless/server/service.py
@@ -370,7 +370,7 @@ class FlawlessService(object):
mod_time = mod_time.strftime("%Y-%m-%d %H:%M:%S")
known_entry = self._get_entry(blamed_e... | Get correct email address when creating err info | py |
diff --git a/optlang/inspyred_interface.py b/optlang/inspyred_interface.py
index <HASH>..<HASH> 100644
--- a/optlang/inspyred_interface.py
+++ b/optlang/inspyred_interface.py
@@ -28,6 +28,7 @@ import types
log = logging.getLogger(__name__)
import sympy
+import inspyred
import interface | inspyred import got lost during cleanup | py |
diff --git a/telethon/client/telegrambaseclient.py b/telethon/client/telegrambaseclient.py
index <HASH>..<HASH> 100644
--- a/telethon/client/telegrambaseclient.py
+++ b/telethon/client/telegrambaseclient.py
@@ -291,11 +291,14 @@ class TelegramBaseClient(abc.ABC):
"""
Disconnects from Telegram.
... | Assert properties exist on disconnect | py |
diff --git a/tests/db/models_test.py b/tests/db/models_test.py
index <HASH>..<HASH> 100644
--- a/tests/db/models_test.py
+++ b/tests/db/models_test.py
@@ -391,8 +391,8 @@ class SESRuptureTestCase(unittest.TestCase):
id=self.source_rupture.id)
self.assertEqual((1, 2, 0.1), source_rupture.top_left_c... | db/models_test: Update to test according to the change in the order of planar surface corner points. Former-commit-id: <I>ecf0a4fae<I>fec7c<I>af<I>ca<I> | py |
diff --git a/modelforge/registry.py b/modelforge/registry.py
index <HASH>..<HASH> 100644
--- a/modelforge/registry.py
+++ b/modelforge/registry.py
@@ -35,15 +35,15 @@ def publish_model(args: argparse.Namespace, backend: StorageBackend, log: loggin
path = os.path.abspath(args.model)
try:
model = Gener... | Fix TransactionRequiredError while uploading a model | py |
diff --git a/travis_docs_builder.py b/travis_docs_builder.py
index <HASH>..<HASH> 100755
--- a/travis_docs_builder.py
+++ b/travis_docs_builder.py
@@ -168,9 +168,12 @@ def setup_GitHub_push(repo):
print("Fetching token remote")
run(['git', 'fetch', 'origin_token'])
#create gh-pages empty branch with .noj... | be careful which checkout command is used if the branch was just created, then don't use `-b` | py |
diff --git a/messages/email.py b/messages/email.py
index <HASH>..<HASH> 100644
--- a/messages/email.py
+++ b/messages/email.py
@@ -20,10 +20,10 @@ class Email:
server_name: str, i.e. 'smtp.gmail.com'
server_port: int, i.e. 465
password: str
- From: str, i.e. 'me@here.com'
- To: ... | updates docstrings to more accurately reflect argument names | py |
diff --git a/src/transformers/generation_utils.py b/src/transformers/generation_utils.py
index <HASH>..<HASH> 100644
--- a/src/transformers/generation_utils.py
+++ b/src/transformers/generation_utils.py
@@ -959,12 +959,6 @@ class GenerationMixin:
)
stopping_criteria = self._get_stopping_criteria(max... | Fixes a useless warning. (#<I>) Fixes #<I> | py |
diff --git a/easymoney/models.py b/easymoney/models.py
index <HASH>..<HASH> 100644
--- a/easymoney/models.py
+++ b/easymoney/models.py
@@ -16,6 +16,10 @@ class Money(Decimal):
def __deepcopy__(self, memo):
return self
+ def __float__(self):
+ """Float representation."""
+ return float(D... | Fix convertion to float and hashing of Money | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -31,7 +31,7 @@ setup(
zip_safe=False,
entry_points={
'flake8.extension': [
- 'flake8-string-format = flake8_string_format:StringFormatChecker',
+ 'P = flake8_string_format:StringFormatC... | Fix entry point name The entry point previously used the plugin name as its name, which actually breaks in Flake8 3.x as it won't automatically select this plugin. By using the error code space as the name it'll be automatically selected. | py |
diff --git a/bang/stack.py b/bang/stack.py
index <HASH>..<HASH> 100644
--- a/bang/stack.py
+++ b/bang/stack.py
@@ -246,6 +246,9 @@ class Stack(object):
callbacks=playbook_cb,
runner_callbacks=runner_cb,
stats=stats,
+
+ # this allows connection reuse usi... | Use the "ssh" transport for ansible playbooks. This sets ControlPersist, which allows connection reuse. | py |
diff --git a/src/rez/utils/colorize.py b/src/rez/utils/colorize.py
index <HASH>..<HASH> 100644
--- a/src/rez/utils/colorize.py
+++ b/src/rez/utils/colorize.py
@@ -193,12 +193,7 @@ def _color(str_, fore_color=None, back_color=None, styles=None):
.. _Colorama:
https://pypi.python.org/pypi/colorama
"""
... | Remove windows exception from colorize.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,12 +16,11 @@
from setuptools import setup
-import oa2
setup_params = dict(
name = 'oa2',
- description = oa2.__doc__.splitlines()[0],
- version = oa2.OA2_VERSION,
+ description = 'OAuth2.0 client library',
+ ... | Prematurely importing oa2. | py |
diff --git a/pysat/tests/test_registry.py b/pysat/tests/test_registry.py
index <HASH>..<HASH> 100644
--- a/pysat/tests/test_registry.py
+++ b/pysat/tests/test_registry.py
@@ -216,3 +216,19 @@ class TestRegistration():
ensure_updated_stored_modules(self.modules)
return
+
+ def test_platform_remova... | TST: Added test for removal using platform only | py |
diff --git a/mailchimp3/mailchimpclient.py b/mailchimp3/mailchimpclient.py
index <HASH>..<HASH> 100644
--- a/mailchimp3/mailchimpclient.py
+++ b/mailchimp3/mailchimpclient.py
@@ -69,6 +69,8 @@ class MailChimpClient(object):
raise e
else:
r.raise_for_status()
+ if r.status_c... | Return None when status code is <I> for no content | py |
diff --git a/lib/autokey/scripting/keyboard.py b/lib/autokey/scripting/keyboard.py
index <HASH>..<HASH> 100644
--- a/lib/autokey/scripting/keyboard.py
+++ b/lib/autokey/scripting/keyboard.py
@@ -16,6 +16,7 @@
import typing
import autokey.model.phrase
+import autokey.iomediator.waiter
from autokey import iomediator... | keyboard.wait_for_keypress() is broken without this import. | py |
diff --git a/pout/__main__.py b/pout/__main__.py
index <HASH>..<HASH> 100644
--- a/pout/__main__.py
+++ b/pout/__main__.py
@@ -170,7 +170,6 @@ class SiteCustomizeFile(str):
" pout.inject()",
"",
]))
- logger.debug("Injected pout into {}".format(self))
... | had a debug when I wanted an info | py |
diff --git a/scoop/reduction.py b/scoop/reduction.py
index <HASH>..<HASH> 100644
--- a/scoop/reduction.py
+++ b/scoop/reduction.py
@@ -22,17 +22,26 @@ total = {}
# Set the number of ran futures for a given group
sequence = defaultdict(itertools.count)
+
def reduction(inFuture, operation):
"""Generic redu... | Reduction operation now correctly begins using the two first map results | py |
diff --git a/visidata/freeze.py b/visidata/freeze.py
index <HASH>..<HASH> 100644
--- a/visidata/freeze.py
+++ b/visidata/freeze.py
@@ -17,9 +17,9 @@ def StaticColumn(sheet, col):
# no need to undo, addColumn undo is enough
for r in Progress(rows, 'calculating'):
try:
- froz... | [frozen] use putValue instead of setValue with frozen columns. - means frozen columns are not deferred Closes #<I> | py |
diff --git a/paypal/standard/models.py b/paypal/standard/models.py
index <HASH>..<HASH> 100644
--- a/paypal/standard/models.py
+++ b/paypal/standard/models.py
@@ -301,27 +301,7 @@ class PayPalStandardBase(Model):
def send_signals(self):
"""Shout for the world to hear whether a txn was successful."""
-
-... | Removed unreachable (and broken) code | py |
diff --git a/labsuite/compilers/pfusx.py b/labsuite/compilers/pfusx.py
index <HASH>..<HASH> 100644
--- a/labsuite/compilers/pfusx.py
+++ b/labsuite/compilers/pfusx.py
@@ -201,8 +201,15 @@ def get_plasmid_wells(sequence, backbone='DNA'):
return well_locs
-def _make_transfer(from_plate, from_well, to_plate, to_well... | Refactor: Argument tweak for line length. | py |
diff --git a/src/hszinc/parser.py b/src/hszinc/parser.py
index <HASH>..<HASH> 100644
--- a/src/hszinc/parser.py
+++ b/src/hszinc/parser.py
@@ -240,6 +240,19 @@ def parse_coord(coordinate_node):
lng = float(coordinate_node.children[4].text)
return Coordinate(lat, lng)
+def parse_ref(ref_node):
+ assert re... | parser: Add parsing of Refs. | py |
diff --git a/tests/teststoreoptions.py b/tests/teststoreoptions.py
index <HASH>..<HASH> 100644
--- a/tests/teststoreoptions.py
+++ b/tests/teststoreoptions.py
@@ -6,6 +6,7 @@ import numpy as np
from holoviews import Overlay, Curve, Image
from holoviews.core.options import Store, StoreOptions
from holoviews.element.c... | Fixed missing import needed to run tests/teststoreoptions.py as standalone test | py |
diff --git a/test_mnemonic.py b/test_mnemonic.py
index <HASH>..<HASH> 100755
--- a/test_mnemonic.py
+++ b/test_mnemonic.py
@@ -203,6 +203,7 @@ class MnemonicTest(unittest.TestCase):
self.assertEqual(seed_nfkd, seed_nfc)
self.assertEqual(seed_nfkd, seed_nfkc)
+ self.assertEqual(seed_nfkd, seed... | add one missing check to unit utf-8 test | py |
diff --git a/src/rituals/util/notify.py b/src/rituals/util/notify.py
index <HASH>..<HASH> 100644
--- a/src/rituals/util/notify.py
+++ b/src/rituals/util/notify.py
@@ -66,4 +66,5 @@ def error(msg):
def failure(msg):
"""Emit a fatal message and exit."""
error(msg)
- raise exceptions.Exit(1)
+ sys.exit(1)... | :arrow_upper_right: use sys.exit, since Exit dumps a traceback | py |
diff --git a/djangosaml2idp/views.py b/djangosaml2idp/views.py
index <HASH>..<HASH> 100644
--- a/djangosaml2idp/views.py
+++ b/djangosaml2idp/views.py
@@ -236,7 +236,7 @@ class SSOInitView(LoginRequiredMixin, IdPHandlerViewMixin, View):
sign_assertion = self.IDP.config.getattr("sign_assertion", "idp") or F... | SAML fails when "InResponseTo" attribute is sent in the SAML response to Service Provider (such as Salesforce) (#<I>) | py |
diff --git a/python_modules/dagster/dagster/core/instance/__init__.py b/python_modules/dagster/dagster/core/instance/__init__.py
index <HASH>..<HASH> 100644
--- a/python_modules/dagster/dagster/core/instance/__init__.py
+++ b/python_modules/dagster/dagster/core/instance/__init__.py
@@ -76,7 +76,7 @@ def _dagster_home_d... | Fix loading config.yaml Summary: If we had a `config.yaml` without `compute_logs` defined, then loading an instance would break. Simply changing to `.get()` to fix this. Test Plan: unit Reviewers: max Reviewed By: max Differential Revision: <URL> | py |
diff --git a/aioimaplib/aioimaplib.py b/aioimaplib/aioimaplib.py
index <HASH>..<HASH> 100644
--- a/aioimaplib/aioimaplib.py
+++ b/aioimaplib/aioimaplib.py
@@ -596,8 +596,7 @@ class IMAP4ClientProtocol(asyncio.Protocol):
command.close(response_text, result=response_result)
def _continuation(self, line):
... | [fix] issue #<I> | py |
diff --git a/mongo_connector/doc_managers/formatters.py b/mongo_connector/doc_managers/formatters.py
index <HASH>..<HASH> 100644
--- a/mongo_connector/doc_managers/formatters.py
+++ b/mongo_connector/doc_managers/formatters.py
@@ -12,6 +12,11 @@ if PY3:
long = int
RE_TYPE = type(re.compile(""))
+try:
+ from ... | Fix import of bson.Regex, since it doesn't exist until pymongo <I>. | py |
diff --git a/ubersmith/calls/client.py b/ubersmith/calls/client.py
index <HASH>..<HASH> 100644
--- a/ubersmith/calls/client.py
+++ b/ubersmith/calls/client.py
@@ -12,6 +12,8 @@ from ubersmith.utils import prepend_base
__all__ = [
'GetCall',
'ListCall',
+ 'PaymentMethodListCall',
+ 'InvoiceCountCall',
... | Added payment_method_list cleaner | py |
diff --git a/python/ray/autoscaler/command_runner.py b/python/ray/autoscaler/command_runner.py
index <HASH>..<HASH> 100644
--- a/python/ray/autoscaler/command_runner.py
+++ b/python/ray/autoscaler/command_runner.py
@@ -659,10 +659,11 @@ class DockerCommandRunner(CommandRunnerInterface):
self.container_name... | [Autoscaler] Actually try to catch when docker does not exist (#<I>) | py |
diff --git a/osuapi/__init__.py b/osuapi/__init__.py
index <HASH>..<HASH> 100644
--- a/osuapi/__init__.py
+++ b/osuapi/__init__.py
@@ -2,7 +2,7 @@ __title__ = "osuapi"
__author__ = "khazhyk"
__license__ = "MIT"
__copyright__ = "Copyright khazhyk"
-__version__ = "0.0.37"
+__version__ = "0.0.38"
from .osu import Os... | <I> support count_normal, count_slider, count_spinner, download_unavailable, audio_unavailable | 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
@@ -423,6 +423,9 @@ def bootstrap(vm_, opts):
'win_installer', vm_, opts
)
if win_installer:
+ deploy_kwargs['port'] = salt.config.get_cloud_config_value(
+ ... | fix windows bootstrapping this is a regression bug | py |
diff --git a/cerberus/cerberus.py b/cerberus/cerberus.py
index <HASH>..<HASH> 100644
--- a/cerberus/cerberus.py
+++ b/cerberus/cerberus.py
@@ -285,10 +285,7 @@ class Validator(object):
error = errors.ValidationError(document_path, schema_path,
code, rule, constra... | Reduces boilerplate for submitting errors | py |
diff --git a/tools/make_saml_metadata.py b/tools/make_saml_metadata.py
index <HASH>..<HASH> 100644
--- a/tools/make_saml_metadata.py
+++ b/tools/make_saml_metadata.py
@@ -30,7 +30,7 @@ parser.add_argument('-s', dest='sign', action='store_true', help="sign the metad
parser.add_argument('-x', dest='xmlsec', help="xmlsec... | Write output to working directory as default. | py |
diff --git a/raiden/api/python.py b/raiden/api/python.py
index <HASH>..<HASH> 100644
--- a/raiden/api/python.py
+++ b/raiden/api/python.py
@@ -232,8 +232,17 @@ class RaidenAPI(object):
if not isaddress(partner_address):
raise InvalidAddress('Expected binary address format for partner in channel de... | extended checks for the python api | py |
diff --git a/openquake/engine/job/validation.py b/openquake/engine/job/validation.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/job/validation.py
+++ b/openquake/engine/job/validation.py
@@ -557,6 +557,7 @@ class ClassicalBCRRiskForm(BaseOQModelForm):
calc_mode = 'classical_bcr'
class Meta:
+ ... | added reference to risk calculation model Former-commit-id: dcb<I>ede<I>f0e<I>c7d<I>f<I>c<I>b<I>daeff | py |
diff --git a/validator/__init__.py b/validator/__init__.py
index <HASH>..<HASH> 100644
--- a/validator/__init__.py
+++ b/validator/__init__.py
@@ -576,14 +576,14 @@ def validate(validation, dictionary):
if isinstance(validation[key], (list, tuple)):
if Required in validation[key]:
... | return "must be present" within an array | py |
diff --git a/oath/_hotp.py b/oath/_hotp.py
index <HASH>..<HASH> 100644
--- a/oath/_hotp.py
+++ b/oath/_hotp.py
@@ -22,7 +22,9 @@ See also http://tools.ietf.org/html/rfc4226
__all__ = ( 'hotp', 'accept_hotp' )
def truncated_value(h):
- offset = ord(h[-1]) & 0xF
+ v = h[-1]
+ if not isinstance(v, int): v = o... | hotp: in Python 3, the secret will by a bytes instance and we can just skip calling ord | py |
diff --git a/sqlalchemy_hana/dialect.py b/sqlalchemy_hana/dialect.py
index <HASH>..<HASH> 100644
--- a/sqlalchemy_hana/dialect.py
+++ b/sqlalchemy_hana/dialect.py
@@ -309,7 +309,7 @@ class HANABaseDialect(default.DefaultDialect):
result = connection.execute(
sql.text(
- "SELECT TA... | Ignore user defined tables types in get_table_names (#<I>) | py |
diff --git a/omxplayer/player.py b/omxplayer/player.py
index <HASH>..<HASH> 100644
--- a/omxplayer/player.py
+++ b/omxplayer/player.py
@@ -436,7 +436,7 @@ class OMXPlayer(object):
Returns:
str: filename currently playing
"""
- return self._filename
+ return self._filename
#... | Fix indentation (again !) | py |
diff --git a/salt/modules/mount.py b/salt/modules/mount.py
index <HASH>..<HASH> 100644
--- a/salt/modules/mount.py
+++ b/salt/modules/mount.py
@@ -418,7 +418,7 @@ def vfstab(config='/etc/vfstab'):
salt '*' mount.vfstab
'''
- ## NOTE: vfstab is a wrapper, we share all code with fstab
+ ## NOTE: vfs... | actually do the cleanup, oops | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.