diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/aiohttp/web_reqrep.py b/aiohttp/web_reqrep.py
index <HASH>..<HASH> 100644
--- a/aiohttp/web_reqrep.py
+++ b/aiohttp/web_reqrep.py
@@ -865,4 +865,4 @@ def json_response(data=sentinel, *, text=None, body=None, status=200,
else:
text = dumps(data)
return Response(text=text, body=bod... | json_response: pass on headers to response object | py |
diff --git a/star.py b/star.py
index <HASH>..<HASH> 100644
--- a/star.py
+++ b/star.py
@@ -185,7 +185,6 @@ def trig_param_plot(stars, output):
numpy.float)
parameters = numpy.vstack(tuple(
interpolation.ak_bk2Ak_Phik(star.coefficients) for star in stars))
- assert F... | Removing an assertion I forgot about | py |
diff --git a/multiqc/modules/kraken/kraken.py b/multiqc/modules/kraken/kraken.py
index <HASH>..<HASH> 100644
--- a/multiqc/modules/kraken/kraken.py
+++ b/multiqc/modules/kraken/kraken.py
@@ -202,7 +202,7 @@ class MultiqcModule(BaseMultiqcModule):
for s_name, d in self.kraken_raw_data.items():
tdat... | Multiply new percentage value by <I> | py |
diff --git a/setuptools_scm/version.py b/setuptools_scm/version.py
index <HASH>..<HASH> 100644
--- a/setuptools_scm/version.py
+++ b/setuptools_scm/version.py
@@ -5,6 +5,8 @@ from .utils import trace
from pkg_resources import iter_entry_points
+from distutils import log
+
try:
from pkg_resources import parse... | Do not use stdout for reporting wrong setuptools | py |
diff --git a/django_js_reverse/tests/unit_tests.py b/django_js_reverse/tests/unit_tests.py
index <HASH>..<HASH> 100755
--- a/django_js_reverse/tests/unit_tests.py
+++ b/django_js_reverse/tests/unit_tests.py
@@ -110,12 +110,12 @@ class JSReverseStaticFileSaveTest(JSReverseViewTestCaseMinified):
f = open(path)
... | reverse.js file save test fix4 | py |
diff --git a/polyaxon/spawner/spawner.py b/polyaxon/spawner/spawner.py
index <HASH>..<HASH> 100644
--- a/polyaxon/spawner/spawner.py
+++ b/polyaxon/spawner/spawner.py
@@ -341,6 +341,7 @@ class K8SSpawner(K8SManager):
def stop_experiment(self):
self.delete_experiment_config_map()
+ self.delete_exp... | Fix stop delete secrets in spawner | py |
diff --git a/stripe/__init__.py b/stripe/__init__.py
index <HASH>..<HASH> 100644
--- a/stripe/__init__.py
+++ b/stripe/__init__.py
@@ -556,13 +556,19 @@ class StripeObject(object):
return json.dumps(self.to_dict(), sort_keys=True, indent=2, cls=StripeObjectEncoder)
def to_dict(self):
+ def _serialize(o):
+... | Fix issue #<I> by adding a recursive serialize function to handle lists and other recursive types. Any object that contains StripeObjects in a list were not being properly serialized. The recursive function now takes care of this. | py |
diff --git a/fix_yahoo_finance/__init__.py b/fix_yahoo_finance/__init__.py
index <HASH>..<HASH> 100644
--- a/fix_yahoo_finance/__init__.py
+++ b/fix_yahoo_finance/__init__.py
@@ -19,12 +19,13 @@
# limitations under the License.
#
+from __future__ import print_function
+
__version__ = "0.1.0"
__author__ = "Ran Aro... | added __future__.print_function | py |
diff --git a/sark/code/segment.py b/sark/code/segment.py
index <HASH>..<HASH> 100644
--- a/sark/code/segment.py
+++ b/sark/code/segment.py
@@ -165,7 +165,7 @@ class Segment(object):
@property
def name(self):
- return idaapi.get_segm_name(self.segment_t)
+ return idaapi.get_true_segm_name(self.... | sark.Segment: change to use true name for segment. | py |
diff --git a/firecloud/api.py b/firecloud/api.py
index <HASH>..<HASH> 100755
--- a/firecloud/api.py
+++ b/firecloud/api.py
@@ -218,7 +218,7 @@ def copy_entities(from_namespace, from_workspace, to_namespace,
}
return __post(uri, json=body, params={'linkExistingEntities':
- ... | Added link_existing_entities kwarg to copy_entities. | py |
diff --git a/ipyrad/assemble/cluster_within.py b/ipyrad/assemble/cluster_within.py
index <HASH>..<HASH> 100644
--- a/ipyrad/assemble/cluster_within.py
+++ b/ipyrad/assemble/cluster_within.py
@@ -666,6 +666,10 @@ def persistent_popen_align3(clusts, maxseqs=200):
## append aligned cluster string
... | Catch a bug in alignment that would crop up intermittently. | py |
diff --git a/tilequeue/wof.py b/tilequeue/wof.py
index <HASH>..<HASH> 100644
--- a/tilequeue/wof.py
+++ b/tilequeue/wof.py
@@ -117,7 +117,9 @@ def _make_requests_session_with_retries(max_retries):
503, # Unavailable, temporarily
504, # Gateway timeout
522 # Origin ... | Add back-off after failures, as supported by Retry - see <URL> | py |
diff --git a/zk_shell/xcmd.py b/zk_shell/xcmd.py
index <HASH>..<HASH> 100644
--- a/zk_shell/xcmd.py
+++ b/zk_shell/xcmd.py
@@ -177,6 +177,9 @@ class XCmd(cmd.Cmd):
if setup_readline:
self._setup_readline(hist_file_name)
+ # build the list of regular commands
+ self._regular_command... | xcmd: store the list of regular commands for fast access | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -30,7 +30,7 @@ setup(
author="Steven Serrata",
author_email='sserrata@paloaltonetworks.com',
url='https://github.com/PaloAltoNetworks/pancloud',
- packages=find_packages(include=['pancloud']),
+ packages=f... | Add pancloud.adapters to find_packages include list | py |
diff --git a/spyder/utils/ipython/spyder_kernel.py b/spyder/utils/ipython/spyder_kernel.py
index <HASH>..<HASH> 100644
--- a/spyder/utils/ipython/spyder_kernel.py
+++ b/spyder/utils/ipython/spyder_kernel.py
@@ -147,8 +147,8 @@ class SpyderKernel(IPythonKernel):
content: dict
The (JSONable) content... | appease overly pedantic linter | py |
diff --git a/redis_hashring/__init__.py b/redis_hashring/__init__.py
index <HASH>..<HASH> 100644
--- a/redis_hashring/__init__.py
+++ b/redis_hashring/__init__.py
@@ -1,5 +1,3 @@
-from __future__ import print_function
-
import binascii
import collections
import socket | Drop future import (#<I>) | py |
diff --git a/voluptuous/voluptuous.py b/voluptuous/voluptuous.py
index <HASH>..<HASH> 100644
--- a/voluptuous/voluptuous.py
+++ b/voluptuous/voluptuous.py
@@ -104,7 +104,7 @@ else:
__author__ = 'Alec Thomas <alec@swapoff.org>'
-__version__ = '0.7.1'
+__version__ = '0.7.2'
@contextmanager | Bump to version <I>. | py |
diff --git a/abydos/distance/_token_distance.py b/abydos/distance/_token_distance.py
index <HASH>..<HASH> 100644
--- a/abydos/distance/_token_distance.py
+++ b/abydos/distance/_token_distance.py
@@ -316,7 +316,7 @@ class _TokenDistance(_Distance):
self._src_tokens = (
self.params['tokenize... | corrected src to tar | py |
diff --git a/telethon_generator/parser/source_builder.py b/telethon_generator/parser/source_builder.py
index <HASH>..<HASH> 100755
--- a/telethon_generator/parser/source_builder.py
+++ b/telethon_generator/parser/source_builder.py
@@ -53,5 +53,4 @@ class SourceBuilder:
return self
def __exit__(self, exc... | SourceBuilder: Don't perform stream flushing twice stream.close() always perform flush by itself | py |
diff --git a/couchbase/tests/cases/view_iterator_t.py b/couchbase/tests/cases/view_iterator_t.py
index <HASH>..<HASH> 100644
--- a/couchbase/tests/cases/view_iterator_t.py
+++ b/couchbase/tests/cases/view_iterator_t.py
@@ -23,6 +23,7 @@ from couchbase.views.params import Query, UNSPEC
from couchbase.exceptions import ... | view_iterator_t: use xrange from _pyport Py3 doesn't have xrange Change-Id: I<I>a1e<I>b<I>a<I>b<I>f0e1ac3ce9a2ca Reviewed-on: <URL> | py |
diff --git a/salt/netapi/rest_cherrypy/app.py b/salt/netapi/rest_cherrypy/app.py
index <HASH>..<HASH> 100644
--- a/salt/netapi/rest_cherrypy/app.py
+++ b/salt/netapi/rest_cherrypy/app.py
@@ -14,7 +14,8 @@ A REST API for Salt
<acl-eauth>` system which requires additional configuration not described
here.
- ... | Add note to rest_cherrypy instructions: restarting daemons is required Closes #<I> | py |
diff --git a/test/integration/test_build_execution.py b/test/integration/test_build_execution.py
index <HASH>..<HASH> 100644
--- a/test/integration/test_build_execution.py
+++ b/test/integration/test_build_execution.py
@@ -103,7 +103,7 @@ def new_set(request):
return set
-
+@pytest.mark.skip()
def test_run_si... | skip build_execution tests since builds are not completing in a reasonable time on PNC | py |
diff --git a/invocations/docs.py b/invocations/docs.py
index <HASH>..<HASH> 100644
--- a/invocations/docs.py
+++ b/invocations/docs.py
@@ -3,12 +3,14 @@ import os
from invoke import ctask as task, Collection
-@task(aliases=['c'])
+# Underscored func name to avoid shadowing kwargs in build()
+@task(name='clean')
d... | Tweak docs module naming/organization: * Do away with single-letter aliases - think this is superceded by the flags in the main task now. * Perform 'real' naming at task level, not collection level, now that this is possible. | py |
diff --git a/whereami/predict.py b/whereami/predict.py
index <HASH>..<HASH> 100644
--- a/whereami/predict.py
+++ b/whereami/predict.py
@@ -1,3 +1,4 @@
+import json
from collections import Counter
from access_points import get_scanner
@@ -12,7 +13,7 @@ from whereami.compat import cross_val_score
def predict_proba(i... | printing predict_proba as json | py |
diff --git a/glooey/drawing/artists.py b/glooey/drawing/artists.py
index <HASH>..<HASH> 100644
--- a/glooey/drawing/artists.py
+++ b/glooey/drawing/artists.py
@@ -53,8 +53,9 @@ class Artist(HoldUpdatesMixin):
return self._vertex_list
def hide(self):
- self._vertex_list.delete()
- self._ver... | Don't try to delete vertex lists that don't exist. | py |
diff --git a/pyinfra_cli/main.py b/pyinfra_cli/main.py
index <HASH>..<HASH> 100644
--- a/pyinfra_cli/main.py
+++ b/pyinfra_cli/main.py
@@ -481,17 +481,6 @@ def _main(
print('--> Proposed changes:')
print_meta(state, inventory)
- # Show warning if we detected any imbalanced operations
- if state.has_im... | Remove defunct imbalanced operation warnings :) | py |
diff --git a/python/l20n/format/lol/parser.py b/python/l20n/format/lol/parser.py
index <HASH>..<HASH> 100644
--- a/python/l20n/format/lol/parser.py
+++ b/python/l20n/format/lol/parser.py
@@ -222,7 +222,9 @@ class Parser():
if self.content[:2] == '{{':
self.content = self.content[2:]
... | update complexstring parsing to get the first string templated | py |
diff --git a/visidata/vdtui.py b/visidata/vdtui.py
index <HASH>..<HASH> 100755
--- a/visidata/vdtui.py
+++ b/visidata/vdtui.py
@@ -81,16 +81,17 @@ class SettingsMgr(collections.OrderedDict):
def get(self, k, obj=None):
'Return self[k] considering context of obj. If obj is None, traverses the entire sta... | [options] reorder override to after sheet-specified | py |
diff --git a/docs/bigquery/snippets.py b/docs/bigquery/snippets.py
index <HASH>..<HASH> 100644
--- a/docs/bigquery/snippets.py
+++ b/docs/bigquery/snippets.py
@@ -168,7 +168,8 @@ def test_list_datasets_by_label(client, to_delete):
else:
print('No datasets found with this filter.')
# [END bigquery_lis... | Harden 'test_list_datasets_by_label' against overlapping CI runs. (#<I>) Closes #<I>. | py |
diff --git a/src/livestreamer/cli.py b/src/livestreamer/cli.py
index <HASH>..<HASH> 100644
--- a/src/livestreamer/cli.py
+++ b/src/livestreamer/cli.py
@@ -167,10 +167,10 @@ def write_stream(fd, out, progress, player):
except IOError as err:
if player and err.errno == errno.EPIPE:
... | cli.write_stream: No need for separate breaks on IOError. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ from setuptools import setup, find_packages
VERSION = '0.1.1'
-with open(os.path.join(os.path.dirname(__file__), 'README.md')) as readme:
+with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as r... | Transferred README.md to README.rst | py |
diff --git a/tcconfig/_tc_command_helper.py b/tcconfig/_tc_command_helper.py
index <HASH>..<HASH> 100644
--- a/tcconfig/_tc_command_helper.py
+++ b/tcconfig/_tc_command_helper.py
@@ -18,11 +18,11 @@ from ._logger import logger
def check_tc_command_installation():
- try:
- spr.Which("tc").verify()
- ex... | Change command installation check process To properly check even if the user is not root. | py |
diff --git a/sos/policies/__init__.py b/sos/policies/__init__.py
index <HASH>..<HASH> 100644
--- a/sos/policies/__init__.py
+++ b/sos/policies/__init__.py
@@ -768,10 +768,11 @@ any third party.
for preset_path in os.listdir(presets_path):
preset_path = os.path.join(presets_path, preset_path)
- ... | [Policy] Wrap json.load() in with clause Wraps `json.load()` from preset loading in a `with` statement to ensure that file objects are properly closed. Closes: #<I> | py |
diff --git a/htmresearch/frameworks/layers/simple_object_machine.py b/htmresearch/frameworks/layers/simple_object_machine.py
index <HASH>..<HASH> 100644
--- a/htmresearch/frameworks/layers/simple_object_machine.py
+++ b/htmresearch/frameworks/layers/simple_object_machine.py
@@ -256,7 +256,7 @@ class SimpleObjectMachine... | Bugfix: Allow noise to flip any bit | py |
diff --git a/test/test_discovery_v1.py b/test/test_discovery_v1.py
index <HASH>..<HASH> 100644
--- a/test/test_discovery_v1.py
+++ b/test/test_discovery_v1.py
@@ -94,7 +94,7 @@ def test_create_environment():
discovery.create_environment(name=badname)
except ValueError as ve:
thrown = True
- ... | fix test that got broken in the reformatting | py |
diff --git a/termenu.py b/termenu.py
index <HASH>..<HASH> 100644
--- a/termenu.py
+++ b/termenu.py
@@ -260,6 +260,8 @@ class MultiSelectMenu(SearchMenu):
self.selectedItems.remove(option)
else:
self.selectedItems.add(option)
+ self.selected += 1
+ self._adjust_selected()... | move down when multi-selecting | py |
diff --git a/image-bundle/setup.py b/image-bundle/setup.py
index <HASH>..<HASH> 100755
--- a/image-bundle/setup.py
+++ b/image-bundle/setup.py
@@ -41,7 +41,7 @@ setup(
long_description=Read('README.md'),
zip_safe=False,
classifiers=[
- 'Development Status :: 4 - Beta',
+ 'Development Status... | Set setup.py development status to Stable for Image Bundle. | py |
diff --git a/salt/cli/caller.py b/salt/cli/caller.py
index <HASH>..<HASH> 100644
--- a/salt/cli/caller.py
+++ b/salt/cli/caller.py
@@ -71,7 +71,7 @@ class Caller(object):
except (TypeError, CommandExecutionError) as exc:
msg = 'Error running \'{0}\': {1}\n'
active_level = LOG_LEVELS.g... | Fix a bug of getting an incorrect active log level. | py |
diff --git a/python/pyspark/mllib/_common.py b/python/pyspark/mllib/_common.py
index <HASH>..<HASH> 100644
--- a/python/pyspark/mllib/_common.py
+++ b/python/pyspark/mllib/_common.py
@@ -454,7 +454,7 @@ def _squared_distance(v1, v2):
v2 = _convert_vector(v2)
if type(v1) == ndarray and type(v2) == ndarray:
... | [SPARK-<I>][MLLIB] use numpy.dot instead of ndarray.dot `ndarray.dot` is not available in numpy <I>. This PR makes pyspark/mllib compatible with numpy <I>. | py |
diff --git a/source/rafcon/mvc/mygaphas/items/state.py b/source/rafcon/mvc/mygaphas/items/state.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/mvc/mygaphas/items/state.py
+++ b/source/rafcon/mvc/mygaphas/items/state.py
@@ -162,11 +162,13 @@ class StateView(Element):
def remove(self):
"""Remove recursi... | Gaphas: Remove deleted item from view selection | py |
diff --git a/lib/pyfrc/sim/ui.py b/lib/pyfrc/sim/ui.py
index <HASH>..<HASH> 100644
--- a/lib/pyfrc/sim/ui.py
+++ b/lib/pyfrc/sim/ui.py
@@ -353,7 +353,10 @@ class SimUI(object):
gamedata = tk.LabelFrame(ctrl_frame, text='Game Data')
self.gamedataval = tk.StringVar()
- self.gamedata... | trace_add is a new tk api, use deprecated trace_variable when not present - Fixes #<I> | py |
diff --git a/flask_security/utils.py b/flask_security/utils.py
index <HASH>..<HASH> 100644
--- a/flask_security/utils.py
+++ b/flask_security/utils.py
@@ -17,8 +17,7 @@ import warnings
from contextlib import contextmanager
from datetime import timedelta
-from flask import current_app, flash, render_template, reques... | Use Security.render_template in mails too Allows custom `render_template` function, mostly for theming support in mails. | py |
diff --git a/examples/amqp_service.py b/examples/amqp_service.py
index <HASH>..<HASH> 100644
--- a/examples/amqp_service.py
+++ b/examples/amqp_service.py
@@ -23,6 +23,7 @@ class ExampleAmqpService(object):
@amqp('example.route1')
async def route1a(self, data: Any) -> None:
+ banana = True
s... | Fixes param issues with AMQP transport | py |
diff --git a/molo/core/content_import/api/urls.py b/molo/core/content_import/api/urls.py
index <HASH>..<HASH> 100644
--- a/molo/core/content_import/api/urls.py
+++ b/molo/core/content_import/api/urls.py
@@ -2,6 +2,8 @@ from django.conf.urls import url
from molo.core.content_import.api import admin_views
+
urlpatt... | Add URLs for for page parent chooser | py |
diff --git a/instabot/bot/bot_get.py b/instabot/bot/bot_get.py
index <HASH>..<HASH> 100644
--- a/instabot/bot/bot_get.py
+++ b/instabot/bot/bot_get.py
@@ -172,19 +172,15 @@ def get_media_likers(self, media_id):
def get_media_comments(self, media_id, only_text=False):
- self.getMediaComments(media_id)
- if 'c... | Update get_media_comments and get_media_comments to get all comments of a post. | py |
diff --git a/wpull/http/web.py b/wpull/http/web.py
index <HASH>..<HASH> 100644
--- a/wpull/http/web.py
+++ b/wpull/http/web.py
@@ -94,7 +94,8 @@ class WebSession(object):
self._redirect_tracker = web_client.redirect_tracker_factory()
self._loop_type = LoopType.normal
- self._add_cookies(self.... | http.web: Check for None before adding cookies. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -19,10 +19,7 @@ setup(
long_description='A facade for wrapping API methods for logging i/o',
test_suite='test.caliendo_test',
install_requires=[
- 'MySQL-python==1.2.4c1',
- 'paramiko==1.9.0',
- ... | Removed erroneous requirements | py |
diff --git a/pfr/finders/GamePlayFinder.py b/pfr/finders/GamePlayFinder.py
index <HASH>..<HASH> 100644
--- a/pfr/finders/GamePlayFinder.py
+++ b/pfr/finders/GamePlayFinder.py
@@ -63,7 +63,12 @@ def GamePlayFinder(**kwargs):
# except Exception as e:
# # if parsing goes wrong, return empty DataFrame
# ... | added year, month, day to GPF results | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,10 +3,10 @@
"""Setup module for the duallog package
This module configures setuptools so that it can create a distribution for the
-duallog package.
+package.
"""
-# Import required system libraries.
+# Import requir... | Cosmetic changes to setup.py. | py |
diff --git a/qtpy/QtCore.py b/qtpy/QtCore.py
index <HASH>..<HASH> 100644
--- a/qtpy/QtCore.py
+++ b/qtpy/QtCore.py
@@ -71,6 +71,7 @@ elif PYSIDE6:
if getattr(Qt, 'mightBeRichText', None) is None:
from PySide6.QtGui import Qt as guiQt
Qt.mightBeRichText = guiQt.mightBeRichText
+ del guiQt
... | QtCore: Remove guiQt after utility functions assignment | py |
diff --git a/pmag.py b/pmag.py
index <HASH>..<HASH> 100755
--- a/pmag.py
+++ b/pmag.py
@@ -8452,6 +8452,8 @@ def read_criteria_from_file(path,acceptance_criteria):
acceptance_criteria[crit]['value']=rec[crit]
acceptance_criteria[crit]['threshold_type']="inherited"
acce... | (temporary?) fix for measurement_step_max key error in thellier_gui auto interpreter with older data sets | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -18,6 +18,7 @@ setup(name='gtr',
install_requires=[
'requests==2.9.1',
],
+ download_url = 'https://github.com/nesta/gtr/tarball/0.1'
classifiers=[
"Operating System :: OS Independ... | Add download url to setup.py | py |
diff --git a/indra/tools/live_curation.py b/indra/tools/live_curation.py
index <HASH>..<HASH> 100644
--- a/indra/tools/live_curation.py
+++ b/indra/tools/live_curation.py
@@ -68,10 +68,18 @@ class Corpus(object):
self._s3.put_object(
Body=json.dumps(self.curations),
Bucket... | Return S3 keys to uploaded statements. Update ToDo. | py |
diff --git a/holoviews/ipython/widgets.py b/holoviews/ipython/widgets.py
index <HASH>..<HASH> 100644
--- a/holoviews/ipython/widgets.py
+++ b/holoviews/ipython/widgets.py
@@ -261,7 +261,7 @@ class NdWidget(param.Parameterized):
initialize the plots.
"""
if isinstance(view, (GridLayout, Adjoin... | Fixed bug in IPython based widget | py |
diff --git a/ec2/spark_ec2.py b/ec2/spark_ec2.py
index <HASH>..<HASH> 100755
--- a/ec2/spark_ec2.py
+++ b/ec2/spark_ec2.py
@@ -234,10 +234,10 @@ def get_spark_ami(opts):
"cg1.4xlarge": "hvm",
"hs1.8xlarge": "pvm",
"hi1.4xlarge": "pvm",
- "m3.medium": "pvm",
- "m3.large": "p... | SPARK-<I>: [EC2] Switch back to HVM instances for m3.X. During regression tests of Spark <I> we discovered perf issues with PVM instances when running PySpark. This reverts a change added in #<I> which changed the default type for m3 instances to PVM. | py |
diff --git a/discord/client.py b/discord/client.py
index <HASH>..<HASH> 100644
--- a/discord/client.py
+++ b/discord/client.py
@@ -537,7 +537,8 @@ class Client:
_log.info('logging in using static token')
- await self._async_setup_hook()
+ if self.loop is _loop:
+ await self._async_... | Only call async setup if the loop sentinel hasn't been changed | py |
diff --git a/datapackage_pipelines/web/server.py b/datapackage_pipelines/web/server.py
index <HASH>..<HASH> 100644
--- a/datapackage_pipelines/web/server.py
+++ b/datapackage_pipelines/web/server.py
@@ -11,7 +11,8 @@ import yaml
import mistune
import requests
-from flask import Blueprint, Flask, render_template, ab... | Add caching headers to badge response. (#<I>) Don't want these badges cached, so the most recent status is served | py |
diff --git a/tests/test_tcp.py b/tests/test_tcp.py
index <HASH>..<HASH> 100644
--- a/tests/test_tcp.py
+++ b/tests/test_tcp.py
@@ -2,7 +2,6 @@
import os
import socket
-import sys
import unittest
from common import linesep, platform_skip, TestCase
@@ -11,6 +10,7 @@ import pyuv
TEST_PORT = 1234
+
class TCPE... | tests: fix TCP test (socket is already closed) | py |
diff --git a/src/python/grpcio_tests/tests/unit/_logging_test.py b/src/python/grpcio_tests/tests/unit/_logging_test.py
index <HASH>..<HASH> 100644
--- a/src/python/grpcio_tests/tests/unit/_logging_test.py
+++ b/src/python/grpcio_tests/tests/unit/_logging_test.py
@@ -15,15 +15,28 @@
import unittest
import six
-impor... | Add test for 'No handlers could be found' problem | py |
diff --git a/pyrogram/client/types/bots/inline_keyboard_button.py b/pyrogram/client/types/bots/inline_keyboard_button.py
index <HASH>..<HASH> 100644
--- a/pyrogram/client/types/bots/inline_keyboard_button.py
+++ b/pyrogram/client/types/bots/inline_keyboard_button.py
@@ -31,7 +31,7 @@ class InlineKeyboardButton(Object):... | Don't decode inline buttons callback data Clients are able to set any value as plain bytes, this means UTF-8 decoding could fail. | py |
diff --git a/pysat/tests/test_sw.py b/pysat/tests/test_sw.py
index <HASH>..<HASH> 100644
--- a/pysat/tests/test_sw.py
+++ b/pysat/tests/test_sw.py
@@ -264,6 +264,19 @@ class TestSwKpCombine():
del combo_in
+ def test_combine_kp_no_data(self):
+ """Test combine_kp when no data is present for speci... | TST: Add test for combine_kp with no data | py |
diff --git a/moto/secretsmanager/models.py b/moto/secretsmanager/models.py
index <HASH>..<HASH> 100644
--- a/moto/secretsmanager/models.py
+++ b/moto/secretsmanager/models.py
@@ -42,6 +42,9 @@ class SecretsManagerBackend(BaseBackend):
self.__dict__ = {}
self.__init__(region_name)
+ def _is_valid_... | Issue <I>: Add support for DescribeSecret - Add helper method to validate the secret identifier from the client. - Update describe_secret to use new helper method. - Insert friendly name into "Name" field of returned description (was SecretId). ***Assumes acceptance of PR <I>. | py |
diff --git a/proso_models/models.py b/proso_models/models.py
index <HASH>..<HASH> 100644
--- a/proso_models/models.py
+++ b/proso_models/models.py
@@ -14,7 +14,7 @@ from decorator import cache_environment_for_item
# This is hack to emulate TRUE value on both psql and sqlite
-DATABASE_TRUE = '1 == 1'
+DATABASE_TRUE... | use single "=" character for emulating TRUE value | py |
diff --git a/ravel.py b/ravel.py
index <HASH>..<HASH> 100644
--- a/ravel.py
+++ b/ravel.py
@@ -147,8 +147,9 @@ class Bus :
self
#end __new__
- def attach_asyncio(loop = None) :
+ def attach_asyncio(self, loop = None) :
self.connection.attach_asyncio(loop)
+ self.loop = self.con... | Bus.attach_asyncio() now works | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -25,7 +25,7 @@ setup(
download_url = "",
classifiers = [
- 'Development Status :: 2 - Pre-Alpha',
+ 'Development Status :: 4 - Beta',
'Operating System :: POSIX :: Linux',
'Opera... | changed Development Status to Beta and added some keywords | py |
diff --git a/tools/c7n_org/c7n_org/cli.py b/tools/c7n_org/c7n_org/cli.py
index <HASH>..<HASH> 100644
--- a/tools/c7n_org/c7n_org/cli.py
+++ b/tools/c7n_org/c7n_org/cli.py
@@ -484,13 +484,15 @@ def accounts_iterator(config):
d = {'account_id': a['subscription_id'],
'name': a.get('name', a['subscri... | tools/c7n_org - fix vars usage for gcp and azure accounts (#<I>) | py |
diff --git a/spyderlib/plugins/ipythonconsole.py b/spyderlib/plugins/ipythonconsole.py
index <HASH>..<HASH> 100644
--- a/spyderlib/plugins/ipythonconsole.py
+++ b/spyderlib/plugins/ipythonconsole.py
@@ -510,7 +510,7 @@ class IPythonConsole(SpyderPluginWidget):
def get_plugin_actions(self):
"""Return a li... | Consoles menu: Move "Open an IPython console" to be its first option | py |
diff --git a/metaseq/rebin.py b/metaseq/rebin.py
index <HASH>..<HASH> 100644
--- a/metaseq/rebin.py
+++ b/metaseq/rebin.py
@@ -1,6 +1,4 @@
import numpy as np
-def rebin(y, bins):
- len_y = y.shape[0]
- x = np.arange(len_y)
- xi = np.linspace(0, len_y, bins)
- return np.interp(xi, x, y)
+def rebin(x, y, nbi... | much simpler rebin (interpolate) | py |
diff --git a/signalr_aio/transports/_transport.py b/signalr_aio/transports/_transport.py
index <HASH>..<HASH> 100644
--- a/signalr_aio/transports/_transport.py
+++ b/signalr_aio/transports/_transport.py
@@ -4,6 +4,12 @@
# signalr_aio/transports/_transport.py
# Stanislav Lazarov
+# python compatiblity for <3.6
+try:... | allow for backwards compatibility (<I>) | py |
diff --git a/tests/providers/date_time.py b/tests/providers/date_time.py
index <HASH>..<HASH> 100644
--- a/tests/providers/date_time.py
+++ b/tests/providers/date_time.py
@@ -6,6 +6,7 @@ import unittest
from faker import Factory
from .. import string_types
+
class TestHuHU(unittest.TestCase):
""" Tests date_t... | Missing test for pl_PL dow and month name | py |
diff --git a/webview/platforms/winforms.py b/webview/platforms/winforms.py
index <HASH>..<HASH> 100644
--- a/webview/platforms/winforms.py
+++ b/webview/platforms/winforms.py
@@ -541,10 +541,8 @@ def _set_ie_mode():
def _allow_localhost():
- from subprocess import check_output
-
- output = check_output('chec... | [Winforms] Fix pyinstaller nowindow issue | py |
diff --git a/test_path.py b/test_path.py
index <HASH>..<HASH> 100644
--- a/test_path.py
+++ b/test_path.py
@@ -30,6 +30,7 @@ import importlib
import pytest
+import path
from path import Path, tempdir
from path import CaseInsensitivePattern as ci
from path import SpecialResolver
@@ -351,6 +352,8 @@ class TestScr... | Mark test as xfail where it's no longer supported. Ref #<I> | py |
diff --git a/multiselectfield/validators.py b/multiselectfield/validators.py
index <HASH>..<HASH> 100644
--- a/multiselectfield/validators.py
+++ b/multiselectfield/validators.py
@@ -16,7 +16,7 @@
from django.core import validators
-from django.utils.translation import ugettext_lazy as _
+from django.utils.transla... | Update lazy translation import (#<I>) `ugettext_lazy` is deprecated as of Django <I> (to be removed in Django <I>) | py |
diff --git a/GPy/core/model.py b/GPy/core/model.py
index <HASH>..<HASH> 100644
--- a/GPy/core/model.py
+++ b/GPy/core/model.py
@@ -188,19 +188,23 @@ class model(parameterised):
"""
-
initial_parameters = self._get_params_transformed()
if parallel:
- jobs = []
- poo... | made parallel optimize_restart responsive to ctrl+c | py |
diff --git a/pywws/toservice.py b/pywws/toservice.py
index <HASH>..<HASH> 100644
--- a/pywws/toservice.py
+++ b/pywws/toservice.py
@@ -22,7 +22,7 @@ class ToService(object):
self.logger = logging.getLogger('pywws.%s' % self.__class__.__name__)
self.params = params
self.data = calib_data
- ... | Slightly rearranged error reporting in toservice.py. Should reduce chance of multiple repeated messages in the log. | py |
diff --git a/napalm/base/helpers.py b/napalm/base/helpers.py
index <HASH>..<HASH> 100644
--- a/napalm/base/helpers.py
+++ b/napalm/base/helpers.py
@@ -248,7 +248,7 @@ def textfsm_extractor(cls, template_name, raw_text):
def find_txt(xml_tree, path, default="", namespaces=None):
"""
Extracts the text value fr... | added lxml text retrieval not to fail if no text avail (#<I>) | py |
diff --git a/pyinfra/api/connectors/docker.py b/pyinfra/api/connectors/docker.py
index <HASH>..<HASH> 100644
--- a/pyinfra/api/connectors/docker.py
+++ b/pyinfra/api/connectors/docker.py
@@ -7,8 +7,6 @@ import six
from six.moves import shlex_quote
-import pyinfra
-
from pyinfra import local, logger
from pyinfra.... | Always disconnect/commit the Docker container (remove CLI check). | py |
diff --git a/kmip/__init__.py b/kmip/__init__.py
index <HASH>..<HASH> 100644
--- a/kmip/__init__.py
+++ b/kmip/__init__.py
@@ -15,6 +15,8 @@
import os
import re
+import sys
+import warnings
from kmip.core import enums
from kmip.pie import client
@@ -44,3 +46,22 @@ __all__ = [
'objects',
'services'
]
... | Add pending deprecation warnings for Python <I> and <I> This change adds pending deprecation warnings for both Python <I> and <I>. Both of these Python versions have reached end-of-life and no longer receive security updates. Future versions of PyKMIP will drop support for both of these Python versions. | py |
diff --git a/indra/sources/eidos/migration_table_processor.py b/indra/sources/eidos/migration_table_processor.py
index <HASH>..<HASH> 100644
--- a/indra/sources/eidos/migration_table_processor.py
+++ b/indra/sources/eidos/migration_table_processor.py
@@ -85,9 +85,7 @@ def make_stmt(row_dict):
return stmt
-if _... | Refactor main into a function and remove specifics | py |
diff --git a/kafka/consumer.py b/kafka/consumer.py
index <HASH>..<HASH> 100644
--- a/kafka/consumer.py
+++ b/kafka/consumer.py
@@ -219,11 +219,6 @@ class SimpleConsumer(object):
start a new batch unless we've reached the end of ths partition.
"""
- # Unless it is the first message in the queu... | Removing the bit about offsets | py |
diff --git a/abydos/distance/_token_distance.py b/abydos/distance/_token_distance.py
index <HASH>..<HASH> 100644
--- a/abydos/distance/_token_distance.py
+++ b/abydos/distance/_token_distance.py
@@ -557,9 +557,6 @@ class _TokenDistance(_Distance):
for src_tok in src_only:
for tar_tok in tar_only... | removed TODOs to GitHub issues | py |
diff --git a/asyncio_xmpp/plugins/base.py b/asyncio_xmpp/plugins/base.py
index <HASH>..<HASH> 100644
--- a/asyncio_xmpp/plugins/base.py
+++ b/asyncio_xmpp/plugins/base.py
@@ -4,7 +4,7 @@
This module provides a base class useful for plugin development.
-.. autoclass:: Service
+.. autoclass:: Service([node...], [loo... | Make the signature of Service base class nicer to read in docs | py |
diff --git a/pyontutils/docs.py b/pyontutils/docs.py
index <HASH>..<HASH> 100644
--- a/pyontutils/docs.py
+++ b/pyontutils/docs.py
@@ -28,6 +28,7 @@ def getMdReadFormat():
md_read_format = getMdReadFormat()
+# NOTE if emacs does not point to /usr/bin/emacs or similar this will fail
compile_org_file = ['emacs', '-... | docs check for *temp* title indicative of issues | py |
diff --git a/ibis/client.py b/ibis/client.py
index <HASH>..<HASH> 100644
--- a/ibis/client.py
+++ b/ibis/client.py
@@ -598,7 +598,9 @@ class ImpalaClient(SQLClient):
stmt = ddl.CreateTableDelimited(name, hdfs_dir, schema,
database=database,
... | Don't ignore escapechar and lineterminator Pass kwargs through to CreateTableDelimited from ImpalaClient.delimited_file. Fixes #<I> | py |
diff --git a/dvc/version.py b/dvc/version.py
index <HASH>..<HASH> 100644
--- a/dvc/version.py
+++ b/dvc/version.py
@@ -6,7 +6,7 @@
import os
import subprocess
-_BASE_VERSION = "2.0.5"
+_BASE_VERSION = "2.0.6"
def _generate_version(base_version): | dvc: bump to <I> | py |
diff --git a/cfgrib/messages.py b/cfgrib/messages.py
index <HASH>..<HASH> 100644
--- a/cfgrib/messages.py
+++ b/cfgrib/messages.py
@@ -35,8 +35,13 @@ try:
import eccodes
else:
from . import bindings as eccodes
-except RuntimeError:
- import pyeccodes.compat as eccodes
+except RuntimeError as e... | Hide the pyeccodes import error that is confusing to most users | py |
diff --git a/pylint/checkers/python3.py b/pylint/checkers/python3.py
index <HASH>..<HASH> 100644
--- a/pylint/checkers/python3.py
+++ b/pylint/checkers/python3.py
@@ -360,6 +360,11 @@ class Python3Checker(checkers.BaseChecker):
'__cmp__',
])
+ def __init__(self, *args, **kwargs):
+ self._futur... | Backed out changeset c1f2f0c<I>b0 This is actually used by the test, which aren't calling visit_module. | py |
diff --git a/lib/search_engine_utils.py b/lib/search_engine_utils.py
index <HASH>..<HASH> 100644
--- a/lib/search_engine_utils.py
+++ b/lib/search_engine_utils.py
@@ -34,6 +34,10 @@ def get_fieldvalues(recIDs, tag, repetitive_values=True):
only.
"""
out = []
+ try:
+ recIDs = int(recIDs)
+ e... | WebSearch: fix get_fieldvalues() when recid is str * recid might be string, so try to convert it to int in the get_fieldvalues function (needed for WebSubmit, major user of this function, which calls it in many different places with a string argument instead of int). * Note: this was committed previously in <I>... | py |
diff --git a/hotdoc/core/doc_repo.py b/hotdoc/core/doc_repo.py
index <HASH>..<HASH> 100644
--- a/hotdoc/core/doc_repo.py
+++ b/hotdoc/core/doc_repo.py
@@ -437,7 +437,12 @@ class DocRepo(object):
"""
Banana banana
"""
- self.output = os.path.abspath(self.config.get('output'))
+ o... | doc_repo: allow None for output again. That was a regression | py |
diff --git a/tests/basics/boundmeth1.py b/tests/basics/boundmeth1.py
index <HASH>..<HASH> 100644
--- a/tests/basics/boundmeth1.py
+++ b/tests/basics/boundmeth1.py
@@ -22,3 +22,9 @@ print(m(1))
# bound method with lots of extra args
m = A().h
print(m(1, 2, 3, 4, 5, 6))
+
+# can't assign attributes to a bound method
+... | tests/basics: Add test for assignment of attribute to bound method. | py |
diff --git a/pysat/_orbits.py b/pysat/_orbits.py
index <HASH>..<HASH> 100644
--- a/pysat/_orbits.py
+++ b/pysat/_orbits.py
@@ -31,6 +31,10 @@ class Orbits(object):
class should not be called directly by the user, use the interface provided
by inst.orbits where inst = pysat.Instrument()
+ Warning
+ ... | Added warning that orbits is still under development. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,11 +1,12 @@
"""bum - setup.py"""
import setuptools
+import sys
try:
import bum
except (ImportError, SyntaxError):
print("error: bum requires Python 3.6 or greater.")
- quit(1)
+ sys.exit(1)
try: | Fix erroneous use of quit() | py |
diff --git a/ryu/ofproto/ofproto_v1_2_parser.py b/ryu/ofproto/ofproto_v1_2_parser.py
index <HASH>..<HASH> 100644
--- a/ryu/ofproto/ofproto_v1_2_parser.py
+++ b/ryu/ofproto/ofproto_v1_2_parser.py
@@ -1557,16 +1557,6 @@ class OFPActionSetField(OFPAction):
return not hasattr(self, 'value')
def to_jsondict(... | ofproto/ofproto_v1_2_parser: Flake8 Fixes | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -19,11 +19,12 @@ setup(
url="https://github.com/horazont/aioxmpp",
author="Jonas Wielicki",
author_email="jonas@wielicki.name",
- license="Apache20",
+ license="GPLv3",
classifiers=[
"Develop... | Fix license information in setup.py | py |
diff --git a/pyvista/core/common.py b/pyvista/core/common.py
index <HASH>..<HASH> 100644
--- a/pyvista/core/common.py
+++ b/pyvista/core/common.py
@@ -287,13 +287,12 @@ class Common(DataSetFilters, DataObject):
def active_scalars_info(self):
"""Return the active scalar's field and name: [field, name]."""
... | Fix failing test when accessing active_scalars_info when clearing arrays. (#<I>) | py |
diff --git a/src/Exscript/protocols/drivers/one_os.py b/src/Exscript/protocols/drivers/one_os.py
index <HASH>..<HASH> 100644
--- a/src/Exscript/protocols/drivers/one_os.py
+++ b/src/Exscript/protocols/drivers/one_os.py
@@ -13,7 +13,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc.,... | fix: typo in one os API docs. | py |
diff --git a/test.py b/test.py
index <HASH>..<HASH> 100644
--- a/test.py
+++ b/test.py
@@ -274,6 +274,19 @@ class TestFifoLock(unittest.TestCase):
self.assertEqual(acquisition_history[2], [True, True, True])
@async_test
+ async def test_semaphore_complete_in_order(self):
+ lock = FifoLock()
+ ... | (tests) Ensure that semaphores finishing in order behave as expected | py |
diff --git a/salt/states/git.py b/salt/states/git.py
index <HASH>..<HASH> 100644
--- a/salt/states/git.py
+++ b/salt/states/git.py
@@ -2213,7 +2213,7 @@ def detached(name,
# Determine if supplied ref is a hash
remote_rev_type = 'ref'
- if len(ref) <= 40 \
+ if len(rev) <= 40 \
and all(x i... | Update old "ref" references to "rev" in git.detached state Fixes #<I> The "rev" kwarg was added to replace "ref" in #<I>, however, when switching the state over to "rev", some stacktraces occur due to some remaining "ref" references. | py |
diff --git a/odl/test/discr/tensor_ops_test.py b/odl/test/discr/tensor_ops_test.py
index <HASH>..<HASH> 100644
--- a/odl/test/discr/tensor_ops_test.py
+++ b/odl/test/discr/tensor_ops_test.py
@@ -89,6 +89,12 @@ def test_pointwise_norm_init_properties():
with pytest.raises(ValueError):
PointwiseNorm(vfspace... | TST: Add test for PointwiseNorm weight being negative | py |
diff --git a/icon_font_to_png/icon_font_downloader.py b/icon_font_to_png/icon_font_downloader.py
index <HASH>..<HASH> 100644
--- a/icon_font_to_png/icon_font_downloader.py
+++ b/icon_font_to_png/icon_font_downloader.py
@@ -102,10 +102,10 @@ class OcticonsDownloader(IconFontDownloader):
Project page:
https... | Octicons changed their GitHub owner | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.