diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/src/scs_osio/csv_writer.py b/src/scs_osio/csv_writer.py
index <HASH>..<HASH> 100755
--- a/src/scs_osio/csv_writer.py
+++ b/src/scs_osio/csv_writer.py
@@ -59,7 +59,7 @@ if __name__ == '__main__':
# -----------------------------------------------------------------------------------------------------... | Fixed a bug in csv_writer.py | 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
@@ -241,6 +241,9 @@ def _virtual(osdata):
sysctl = salt.utils.which('sysctl')
if sysctl:
model = __salt__['cmd.run']('{0} hw.model'.format(sysctl)).strip(... | added virtual_subtype support for FreeBSD jails | py |
diff --git a/photutils/psf/tests/test_core.py b/photutils/psf/tests/test_core.py
index <HASH>..<HASH> 100644
--- a/photutils/psf/tests/test_core.py
+++ b/photutils/psf/tests/test_core.py
@@ -108,9 +108,9 @@ def test_psf_adapter(moffimg, prepkwargs, tols):
guess_moffat = Moffat2D(x_0=.1, y_0=-.05, gamma=1.01,
... | place comment in the correct line [skip ci] | py |
diff --git a/workshift/views.py b/workshift/views.py
index <HASH>..<HASH> 100644
--- a/workshift/views.py
+++ b/workshift/views.py
@@ -1505,8 +1505,8 @@ def edit_instance_view(request, semester, pk, profile=None):
"edit_form": edit_form,
}, context_instance=RequestContext(request))
-@semester_required
-... | Fixed permissions on types pages, reject unauthed users Previously was throwing python errors on unauthed users | py |
diff --git a/onnx_mxnet/tests/test_models.py b/onnx_mxnet/tests/test_models.py
index <HASH>..<HASH> 100644
--- a/onnx_mxnet/tests/test_models.py
+++ b/onnx_mxnet/tests/test_models.py
@@ -42,7 +42,7 @@ def extract_file(model_tar):
path = model_tar.rsplit('_', 1)[0]
# return model, inputs, outputs path
cur... | Fix codebuild failures ONNX changed the model extension from .pb to .onnx | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -48,7 +48,7 @@ setup(
name="pycapnp",
packages=["capnp"],
version=VERSION,
- package_data={'capnp': ['*.pxd', '*.h', '*.capnp', 'helpers/*.pxd', 'helpers/*.h', 'includes/*.pxd', 'lib/*.pxd', 'lib/*.py']},
+ ... | Fix setup.py forgetting capnp/lib/*.pyx | py |
diff --git a/mlbgame/game.py b/mlbgame/game.py
index <HASH>..<HASH> 100644
--- a/mlbgame/game.py
+++ b/mlbgame/game.py
@@ -150,4 +150,10 @@ class GameBoxScore(object):
self.innings = []
for x in sorted(data):
result = {'inning':int(x), 'home':data[x]['home'], 'away':data[x]['away']}
- ... | Allow box score to be iterated over | py |
diff --git a/src/feat/agents/application.py b/src/feat/agents/application.py
index <HASH>..<HASH> 100644
--- a/src/feat/agents/application.py
+++ b/src/feat/agents/application.py
@@ -40,6 +40,7 @@ class Feat(applications.Application):
'feat.agents.migration.migration_agent',
'feat.agents.nagios.nagios... | Add forgotten import to use the api models for integrity agent. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -178,7 +178,6 @@ else:
setup(name = 'pyhdf',
maintainer = 'pyhdf authors',
- maintainer_email = 'fshahriar@gmail.com',
author = 'Andre Gosselin et al.',
description = DOCLINES[... | setup.py: remove maintainer_email This discourages people from emailing me instead of opening a github issue. My email can be found in commit messages anyway. | py |
diff --git a/gen_conda_requirements.py b/gen_conda_requirements.py
index <HASH>..<HASH> 100644
--- a/gen_conda_requirements.py
+++ b/gen_conda_requirements.py
@@ -54,7 +54,7 @@ def compute_requirements(requirement_names, options=None):
conda_reqs_lines = []
if 'python=2' in options:
- conda_reqs_line... | don't add python dep here | py |
diff --git a/headers/cpp/ast.py b/headers/cpp/ast.py
index <HASH>..<HASH> 100755
--- a/headers/cpp/ast.py
+++ b/headers/cpp/ast.py
@@ -547,7 +547,7 @@ class TypeConverter(object):
first_token = None
default = []
- def AddParameter(end_token):
+ def AddParameter():
if defau... | Remove end_token, it's not necessary and doesn't help give more accurate info for where the type is. git-svn-id: <URL> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -45,6 +45,11 @@ setup(
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
+ 'Programming Language :: Python :: 2',
+ ... | mention Python 3 support in setup.py | py |
diff --git a/util.py b/util.py
index <HASH>..<HASH> 100644
--- a/util.py
+++ b/util.py
@@ -551,6 +551,7 @@ def integrate(base, x, dvardx, coord_index, base_at_start=True):
if True, assumes base corresponds to the value of var before the first
index of
'''
+ pass
def d_x(data, axis, bound... | added pass to a function in util.py | py |
diff --git a/doc/_ext/aafig.py b/doc/_ext/aafig.py
index <HASH>..<HASH> 100644
--- a/doc/_ext/aafig.py
+++ b/doc/_ext/aafig.py
@@ -183,7 +183,7 @@ def render_aafigure(app, text, options):
try:
f = open(metadata_fname, 'r')
extra = f.read()
- ... | flake8: Fix bare except in try/catch | py |
diff --git a/salt/modules/status.py b/salt/modules/status.py
index <HASH>..<HASH> 100644
--- a/salt/modules/status.py
+++ b/salt/modules/status.py
@@ -928,7 +928,7 @@ def all_status():
'meminfo': meminfo(),
'netdev': netdev(),
'netstats': netstats(),
- 'uptime': uptime(... | make status.all_status work on Solaris like platforms | py |
diff --git a/python-package/xgboost/training.py b/python-package/xgboost/training.py
index <HASH>..<HASH> 100644
--- a/python-package/xgboost/training.py
+++ b/python-package/xgboost/training.py
@@ -98,7 +98,8 @@ def train(params, dtrain, num_boost_round=10, evals=(), obj=None, feval=None,
if len(evals) < 1:
... | Suppress more evaluation verbose during training | py |
diff --git a/salt/engines/slack.py b/salt/engines/slack.py
index <HASH>..<HASH> 100644
--- a/salt/engines/slack.py
+++ b/salt/engines/slack.py
@@ -272,9 +272,9 @@ def start(token,
ret = local.cmd('{0}'.format(target), cmd, arg=args, kwarg=kwargs, tgt_type='{0}'.format(tgt_type))
... | added-highstate-output-to-slack-engine | py |
diff --git a/piplicenses.py b/piplicenses.py
index <HASH>..<HASH> 100644
--- a/piplicenses.py
+++ b/piplicenses.py
@@ -143,7 +143,8 @@ def get_packages(args):
for test_file in patterns:
if os.path.exists(test_file):
license_file = test_file
- with open(test_file, en... | Open license file works well with errors='backslashreplace' Close #<I> See documentation of open(): <URL> | py |
diff --git a/diff_cover/violationsreporters/violations_reporter.py b/diff_cover/violationsreporters/violations_reporter.py
index <HASH>..<HASH> 100644
--- a/diff_cover/violationsreporters/violations_reporter.py
+++ b/diff_cover/violationsreporters/violations_reporter.py
@@ -261,7 +261,7 @@ pyflakes_driver = RegexBasedD... | Pyflakes updated its output format. This update should be backwards compatible but im making the next version major just in case | py |
diff --git a/src/inscriptis/__init__.py b/src/inscriptis/__init__.py
index <HASH>..<HASH> 100644
--- a/src/inscriptis/__init__.py
+++ b/src/inscriptis/__init__.py
@@ -23,7 +23,7 @@ __author__ = 'Albert Weichselbraun, Fabian Odoni'
__author_email__ = 'albert.weichselbraun@fhgr.ch, fabian.odoni@fhgr.ch'
__copyright__ =... | chg: upped version to <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -15,8 +15,9 @@
#
# - git tag VERSION
# - git push --tags
-# - python3 setup.py register sdist bdist_wheel upload
-# (need wheel: sudo python3 -m pip install -U setuptools wheel)
+# - rm -rf dist/
+# - run: python3 s... | setup.py: use twine | py |
diff --git a/napalm_yang/jinja_filters/mac_filters.py b/napalm_yang/jinja_filters/mac_filters.py
index <HASH>..<HASH> 100644
--- a/napalm_yang/jinja_filters/mac_filters.py
+++ b/napalm_yang/jinja_filters/mac_filters.py
@@ -1,18 +1,21 @@
from napalm_yang.jinja_filters.helpers import check_empty
import netaddr
+
def... | pep8 style fixes for mac_filters.py | py |
diff --git a/auditok/workers.py b/auditok/workers.py
index <HASH>..<HASH> 100755
--- a/auditok/workers.py
+++ b/auditok/workers.py
@@ -177,6 +177,8 @@ class StreamSaverWorker(Worker, AudioDataSource):
self._cache_size = cache_size_sec * self._reader.sr * sample_size_bytes
self._output_filename = file... | Handle the case where no output format could be guessed in StreamSaverWorker | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,6 +3,40 @@
import os
import pypandoc
+# Notes for the not-an-everyday-python-dev for package distribution on pypi
+#
+# Build the package using `setuptools`:
+#
+# python setup.py sdist bdist_wheel
+#
+# Make sure y... | setup.py: add some release docs, for next person (hi future me). | py |
diff --git a/wonambi/widgets/traces.py b/wonambi/widgets/traces.py
index <HASH>..<HASH> 100644
--- a/wonambi/widgets/traces.py
+++ b/wonambi/widgets/traces.py
@@ -725,8 +725,6 @@ class Traces(QGraphicsView):
def X_more(self):
"""Zoom in on the x-axis."""
- if self.parent.value('window_length') < ... | when window length was less than <I>ms, you could not make the window length larger | py |
diff --git a/tests/utils.py b/tests/utils.py
index <HASH>..<HASH> 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -4,7 +4,7 @@ from __future__ import absolute_import
from __future__ import division, print_function, unicode_literals
from os.path import dirname, join, abspath
-from sumy._compat import to_string
+... | Tests: added function 'utils.load_resource' | py |
diff --git a/glue/ligolw/lsctables.py b/glue/ligolw/lsctables.py
index <HASH>..<HASH> 100644
--- a/glue/ligolw/lsctables.py
+++ b/glue/ligolw/lsctables.py
@@ -1805,14 +1805,14 @@ class MultiInspiralTable(table.Table):
def get_end(self):
return [row.get_end() for row in self]
- def get_new_snr(self, index=6.0, co... | glue.ligolw.lsctables: fixed difference in get_new_snr methods between MultiInspiral and MultiInspiralTable (cherry picked from commit bb<I>f8f6a7db<I>ffaade<I>b<I>e2b<I>dc<I>) | py |
diff --git a/pyamg/aggregation/__init__.py b/pyamg/aggregation/__init__.py
index <HASH>..<HASH> 100644
--- a/pyamg/aggregation/__init__.py
+++ b/pyamg/aggregation/__init__.py
@@ -2,6 +2,7 @@
#from info import __doc__
+from adaptive import *
from aggregate import *
from aggregation import *
from tentative import... | add adaptive to aggregation imports | py |
diff --git a/pyfire/upload.py b/pyfire/upload.py
index <HASH>..<HASH> 100644
--- a/pyfire/upload.py
+++ b/pyfire/upload.py
@@ -83,7 +83,7 @@ class Upload(Thread):
messages = None
try:
- data = queue.get_nowait()
+ data = queue.get()
if not data:
done = True
if self._finished_callback:
@... | Fixing issue where uploading would always trigger an error after finished sending all data | py |
diff --git a/lang_data/en/generate_specials.py b/lang_data/en/generate_specials.py
index <HASH>..<HASH> 100644
--- a/lang_data/en/generate_specials.py
+++ b/lang_data/en/generate_specials.py
@@ -342,7 +342,7 @@ hardcoded_specials = {
"\n": [{"F": "\n", "pos": "SP"}],
"\t": [{"F": "\t",... | * Fix non-breaking space in specials.json | py |
diff --git a/jaraco/util/filesystem.py b/jaraco/util/filesystem.py
index <HASH>..<HASH> 100644
--- a/jaraco/util/filesystem.py
+++ b/jaraco/util/filesystem.py
@@ -84,3 +84,13 @@ def ExtensionReplacer(new_ext):
'myfile.pdf'
"""
return functools.partial(replace_extension, new_ext)
+
+def ensure_dir_exists(func):
+ ... | Added ensure_dir_exists decorator | py |
diff --git a/src/python/tmclient/version.py b/src/python/tmclient/version.py
index <HASH>..<HASH> 100644
--- a/src/python/tmclient/version.py
+++ b/src/python/tmclient/version.py
@@ -11,5 +11,5 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language go... | Increase version to <I> for release | py |
diff --git a/asciimatics/screen.py b/asciimatics/screen.py
index <HASH>..<HASH> 100644
--- a/asciimatics/screen.py
+++ b/asciimatics/screen.py
@@ -4,16 +4,12 @@ from __future__ import print_function
from __future__ import unicode_literals
from builtins import object
from builtins import range
-from win32console impo... | Move win<I> imports to Windows specific branches. | py |
diff --git a/yaswfp/helpers.py b/yaswfp/helpers.py
index <HASH>..<HASH> 100644
--- a/yaswfp/helpers.py
+++ b/yaswfp/helpers.py
@@ -121,9 +121,10 @@ class BitConsumer:
def s_get(self, quant):
"""Return a number using the given quantity of signed bits."""
- if quant == 1:
+ if quant < 2:
... | Fixed bugs related to the BitConsumer functions | py |
diff --git a/pandas/core/indexes/timedeltas.py b/pandas/core/indexes/timedeltas.py
index <HASH>..<HASH> 100644
--- a/pandas/core/indexes/timedeltas.py
+++ b/pandas/core/indexes/timedeltas.py
@@ -51,7 +51,7 @@ from pandas.tseries.frequencies import to_offset
],
TimedeltaArray,
)
-class TimedeltaIndex(Datetime... | CLN: Remove redundant mixin to TimedeltaIndex (#<I>) | py |
diff --git a/tamil/wordutils.py b/tamil/wordutils.py
index <HASH>..<HASH> 100644
--- a/tamil/wordutils.py
+++ b/tamil/wordutils.py
@@ -272,7 +272,7 @@ def word_split(inword,dictionary):
return ((solutions))
-def minnal(word_list):
+def minnal(word_list,use_grantham=False):
L = list(map(utf8.get_letter... | Skip grantham letters by default if not requested | py |
diff --git a/bigchaindb/commands/bigchaindb.py b/bigchaindb/commands/bigchaindb.py
index <HASH>..<HASH> 100644
--- a/bigchaindb/commands/bigchaindb.py
+++ b/bigchaindb/commands/bigchaindb.py
@@ -68,7 +68,6 @@ def run_configure(args):
print('Generating default configuration for backend {}'
.format(args.b... | Problem: `bigchaindb configure` does not write the correct configuration (#<I>) | py |
diff --git a/arcana/utils/interfaces.py b/arcana/utils/interfaces.py
index <HASH>..<HASH> 100644
--- a/arcana/utils/interfaces.py
+++ b/arcana/utils/interfaces.py
@@ -416,8 +416,14 @@ class CopyToDir(BaseInterface):
# Create filenames that will sort ascendingly with the order the
# file is inp... | added fix to copytodir when file extensions are None | py |
diff --git a/uvision.py b/uvision.py
index <HASH>..<HASH> 100644
--- a/uvision.py
+++ b/uvision.py
@@ -15,6 +15,7 @@
from os.path import basename, join, relpath
from exporter import Exporter
import subprocess
+import logging
import copy
from uvision_definitions import uVisionDefinitions
@@ -160,7 +161,7 @@ class... | [build] fix uVision builds | py |
diff --git a/datasette/app.py b/datasette/app.py
index <HASH>..<HASH> 100644
--- a/datasette/app.py
+++ b/datasette/app.py
@@ -1212,9 +1212,10 @@ class DatasetteRouter:
else:
# Is there a pages/* template matching this path?
route_path = request.scope.get("route_path", request.scope["... | Jinja template_name should use "/" even on Windows (#<I>) Closes #<I>. Thanks, Robert Christie | py |
diff --git a/pysnmp/entity/rfc3413/cmdrsp.py b/pysnmp/entity/rfc3413/cmdrsp.py
index <HASH>..<HASH> 100644
--- a/pysnmp/entity/rfc3413/cmdrsp.py
+++ b/pysnmp/entity/rfc3413/cmdrsp.py
@@ -164,7 +164,7 @@ class CommandResponderBase:
except pysnmp.smi.error.InconsistentNameError, errorIndication:
err... | fix to processPdu code - SmiError type exceptions are not a mapping kind | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -20,11 +20,13 @@ setup(
description="A markdown renderer focusing on security first",
long_description=long_description,
long_description_content_type="text/markdown",
- version="18.10.4",
+ version="19.10... | Updated calver to this years version | py |
diff --git a/redis/client.py b/redis/client.py
index <HASH>..<HASH> 100755
--- a/redis/client.py
+++ b/redis/client.py
@@ -335,7 +335,7 @@ class StrictRedis(object):
string_keys_to_dict(
# these return OK, or int if redis-server is >=1.3.4
'LPUSH RPUSH',
- lambda r: isinsta... | Check `int` also not only `long` PyPy can generate an `int` instance here. | py |
diff --git a/zk_shell/shell.py b/zk_shell/shell.py
index <HASH>..<HASH> 100644
--- a/zk_shell/shell.py
+++ b/zk_shell/shell.py
@@ -492,6 +492,32 @@ example:
def do_rmr(self, params):
self._zk.delete(params.path, recursive=True)
+ @connected
+ @AugumentedCmd.ensure_params([])
+ def do_session_in... | Add a new command (session_info) to expose negotiated timeout, last zxid, etc. | py |
diff --git a/anchore/cli/toolbox.py b/anchore/cli/toolbox.py
index <HASH>..<HASH> 100644
--- a/anchore/cli/toolbox.py
+++ b/anchore/cli/toolbox.py
@@ -61,7 +61,17 @@ def purge(dontask):
try:
#for i in nav.get_images():
for i in imagelist:
+ imageId = None
if contexts['anch... | better handling of imageId lookup in toolbox delete | py |
diff --git a/tests/unit/test_gitlab.py b/tests/unit/test_gitlab.py
index <HASH>..<HASH> 100644
--- a/tests/unit/test_gitlab.py
+++ b/tests/unit/test_gitlab.py
@@ -20,6 +20,7 @@ import copy
import logging
import pickle
from http.client import HTTPConnection
+from typing import List, Optional, Union
import pytest
... | test: fix broken test if user had config files Use `monkeypatch` to ensure that no config files are reported for the test. Closes: #<I> | 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
@@ -410,6 +410,8 @@ class MPSlipMapPanel(wx.Panel):
else:
... | map: limit zoom to lat -<I> to <I>. this prevents invalid tiles | py |
diff --git a/tests/python/pants_test/backend/jvm/tasks/jvm_compile/rsc/test_rsc_compile_integration_youtline.py b/tests/python/pants_test/backend/jvm/tasks/jvm_compile/rsc/test_rsc_compile_integration_youtline.py
index <HASH>..<HASH> 100644
--- a/tests/python/pants_test/backend/jvm/tasks/jvm_compile/rsc/test_rsc_compil... | Skip flaky `RscCompileIntegrationYoutline` test. (#<I>) The `test_basic_binary` test intermittently fails. See #<I> | py |
diff --git a/danceschool/financial/models.py b/danceschool/financial/models.py
index <HASH>..<HASH> 100644
--- a/danceschool/financial/models.py
+++ b/danceschool/financial/models.py
@@ -281,7 +281,7 @@ class RevenueItem(models.Model):
# occurrence in that month.
if not self.accrualDate:
... | Fixed issue with accrual dates when creating Revenue Items from finalized registrations. | py |
diff --git a/pprofile.py b/pprofile.py
index <HASH>..<HASH> 100755
--- a/pprofile.py
+++ b/pprofile.py
@@ -533,7 +533,7 @@ class ProfileRunnerBase(object):
return func(*args, **kw)
def runfile(self, fd, argv, fd_name='<unknown>', compile_flags=0,
- dont_inherit=0):
+ dont_inher... | Do not apply active `__future__` imports to profiled code This caused all profiled scripts to be parsed with `print_function` active, leading to syntax errors. | py |
diff --git a/buildbot/status/web/xmlrpc.py b/buildbot/status/web/xmlrpc.py
index <HASH>..<HASH> 100644
--- a/buildbot/status/web/xmlrpc.py
+++ b/buildbot/status/web/xmlrpc.py
@@ -168,7 +168,17 @@ class XMLRPCServer(xmlrpc.XMLRPC):
info['slavename'] = build.getSlavename()
info['results'] = build.getRes... | modified the xmlrpc getBuild(...) call to return the branch, revision, and build number | py |
diff --git a/salt/modules/postgres.py b/salt/modules/postgres.py
index <HASH>..<HASH> 100644
--- a/salt/modules/postgres.py
+++ b/salt/modules/postgres.py
@@ -173,7 +173,7 @@ def db_create(name,
return False
# Base query to create a database
- query = 'CREATE DATABASE {0}'.format(name)
+ query... | Add quoting for postgres users and databases Otherwise, creating users and databases within postgres fails when they contain a dash (-). | py |
diff --git a/test_portend.py b/test_portend.py
index <HASH>..<HASH> 100644
--- a/test_portend.py
+++ b/test_portend.py
@@ -9,7 +9,7 @@ def socket_infos():
"""
Generate addr infos for connections to localhost
"""
- host = ''
+ host = None
port = portend.find_available_local_port()
family = getattr(socket, 'AF_... | What happens if instead I use None? | py |
diff --git a/hydpy/models/hland/hland_model.py b/hydpy/models/hland/hland_model.py
index <HASH>..<HASH> 100644
--- a/hydpy/models/hland/hland_model.py
+++ b/hydpy/models/hland/hland_model.py
@@ -1592,7 +1592,7 @@ class Calc_In_WC_V1(modeltools.Method):
Examples:
We initialise seven zones of different ty... | Improve method `Calc_In_WC_V1` of base model `hland`. The new formulation guarantees that `WC` never exceeds the product of `WHC` and `SP`. Previously, tiny violations due to limited numerical precision led to unnecessary `trim` warnings. | py |
diff --git a/photutils/background/background_2d.py b/photutils/background/background_2d.py
index <HASH>..<HASH> 100644
--- a/photutils/background/background_2d.py
+++ b/photutils/background/background_2d.py
@@ -373,8 +373,10 @@ class Background2D(object):
# mask the padded regions
pad_mask = np.zero... | Fix fancy indicing in case [x/y]pad is zero | py |
diff --git a/quickbooks/client.py b/quickbooks/client.py
index <HASH>..<HASH> 100644
--- a/quickbooks/client.py
+++ b/quickbooks/client.py
@@ -361,7 +361,7 @@ class QuickBooks(object):
response = self.session.request("GET", url, True, self.company_id, headers=headers)
- if response.status_code is no... | Fix for python 3... in python3 the httplib.OK is HTTPStatus.OK object, therefor identity comparison didn't work. | py |
diff --git a/usb/core.py b/usb/core.py
index <HASH>..<HASH> 100644
--- a/usb/core.py
+++ b/usb/core.py
@@ -122,6 +122,7 @@ class _ResourceManager(object):
self.dev = dev
self.handle = None
self._claimed_intf = set()
+ self._intf_setting = {}
self._ep_info = {}
self.lo... | core: track the alternate setting of each interface | py |
diff --git a/slacker/__init__.py b/slacker/__init__.py
index <HASH>..<HASH> 100644
--- a/slacker/__init__.py
+++ b/slacker/__init__.py
@@ -259,7 +259,7 @@ class Chat(BaseAPI):
def update(self, channel, ts, text):
return self.post('chat.update',
- data={'channel': channel, 'ts': ts, 'tex... | PEP 8: Continuation line under-indented | py |
diff --git a/experiments/nips2015-model-selection.py b/experiments/nips2015-model-selection.py
index <HASH>..<HASH> 100755
--- a/experiments/nips2015-model-selection.py
+++ b/experiments/nips2015-model-selection.py
@@ -78,7 +78,7 @@ parser.add_argument(
parser.add_argument(
"--training-epochs",
- default=100... | use bigger batches for more epochs | py |
diff --git a/datascience/tables.py b/datascience/tables.py
index <HASH>..<HASH> 100644
--- a/datascience/tables.py
+++ b/datascience/tables.py
@@ -2657,9 +2657,7 @@ class Table(collections.abc.MutableMapping):
def to_array(self):
"""Convert the table to a structured NumPy array.
- The elements in... | Simplified description of array's contents. | py |
diff --git a/kconfiglib.py b/kconfiglib.py
index <HASH>..<HASH> 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -2530,9 +2530,6 @@ class Kconfig(object):
node = MenuNode()
node.item = node.prompt = None
node.parent = parent
- node.filename = self._file... | Don't set filename and linenr on 'if' menu nodes There's no way to query them later, as 'if's get flattened and removed, and they're not needed during parsing either. | py |
diff --git a/cookies.py b/cookies.py
index <HASH>..<HASH> 100644
--- a/cookies.py
+++ b/cookies.py
@@ -2,7 +2,7 @@
"cookies.py"
-import os, copy
+import os, copy, urllib
import itertools
import string, re
@@ -66,7 +66,7 @@ class cookie( dict ):
def getRequestHeader( self ):
"returns the cookie... | Apparently, cookies are supposed to be quoted strings. In the past, this wasn't an issue, but when I started generating strings with spaces and other characters in them, they need to be quoted. Does this mean I should unquote the cookies when they come in? | py |
diff --git a/examples/rq/tasks.py b/examples/rq/tasks.py
index <HASH>..<HASH> 100644
--- a/examples/rq/tasks.py
+++ b/examples/rq/tasks.py
@@ -8,7 +8,7 @@ def emit_words(msg):
yield word
-@router.node(('word', 'count'), subscribe_to='tasks.emit_words')
+@router.node(('word', 'count'), subscribe_to='tasks.e... | put tally_word on a separate queue | py |
diff --git a/source/rafcon/gui/models/modification_history.py b/source/rafcon/gui/models/modification_history.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/gui/models/modification_history.py
+++ b/source/rafcon/gui/models/modification_history.py
@@ -364,7 +364,7 @@ class ModificationsHistoryModel(ModelMT):
... | fix(modification_history): get_change() can return None | py |
diff --git a/glue/ligolw/array.py b/glue/ligolw/array.py
index <HASH>..<HASH> 100644
--- a/glue/ligolw/array.py
+++ b/glue/ligolw/array.py
@@ -201,12 +201,13 @@ class ArrayStream(ligolw.Stream):
format = ligolwtypes.FormatFunc[self.parentNode.getAttribute(u"Type")]
a = self.parentNode.array
index = iter(IndexI... | Small performance improvement: avoid attribute access in inner loop. | py |
diff --git a/scripts/synchronize_test_cases.py b/scripts/synchronize_test_cases.py
index <HASH>..<HASH> 100755
--- a/scripts/synchronize_test_cases.py
+++ b/scripts/synchronize_test_cases.py
@@ -20,7 +20,7 @@ class Synchronize(object):
'test_case': 'test_case',
'test_case_item': 'test_c... | fix project_info route for json view | py |
diff --git a/taipan/collections/lists.py b/taipan/collections/lists.py
index <HASH>..<HASH> 100644
--- a/taipan/collections/lists.py
+++ b/taipan/collections/lists.py
@@ -7,7 +7,7 @@ from taipan.collections import ensure_sequence
__all__ = [
'head', 'last', 'tail', 'init',
- 'intersperse', 'intercalate', 'co... | Minor fixes to .collections.lists | py |
diff --git a/wrappers/python/indy/libindy.py b/wrappers/python/indy/libindy.py
index <HASH>..<HASH> 100644
--- a/wrappers/python/indy/libindy.py
+++ b/wrappers/python/indy/libindy.py
@@ -72,7 +72,11 @@ def _get_indy_error(err: int) -> IndyError:
return IndyError(errorcode)
error_details = _get_error_det... | Handle unrecognized exception case | py |
diff --git a/parsl/monitoring/db_manager.py b/parsl/monitoring/db_manager.py
index <HASH>..<HASH> 100644
--- a/parsl/monitoring/db_manager.py
+++ b/parsl/monitoring/db_manager.py
@@ -539,7 +539,9 @@ class DatabaseManager:
"_migrate_logs_to_internal can only migrate WORKFLOW_,TASK_INFO message f... | Add a stronger type assertion around monitoring code being rearranged (#<I>) | py |
diff --git a/salt/pillar/django_orm.py b/salt/pillar/django_orm.py
index <HASH>..<HASH> 100644
--- a/salt/pillar/django_orm.py
+++ b/salt/pillar/django_orm.py
@@ -130,7 +130,7 @@ def ext_pillar(pillar,
log.error('Virtualenv {} not a directory!'.format(path))
return {}
# load t... | Make django_orm load virtualenv packages before system packages A django app may require a specific version of a package that it depends on, and will have ensured the correct version is in the virtualenv. This commit ensures that this version will be used, even if a different version is installed in the system p... | py |
diff --git a/hszinc/__init__.py b/hszinc/__init__.py
index <HASH>..<HASH> 100644
--- a/hszinc/__init__.py
+++ b/hszinc/__init__.py
@@ -8,7 +8,7 @@ from .grid import Grid
from .dumper import dump
from .parser import parse
from .metadata import MetadataObject
-from .datatypes import Quantity, Coordinate, Uri, Bin, MAR... | hszinc: Add missed import for 'REMOVE' object | py |
diff --git a/spyder/utils/programs.py b/spyder/utils/programs.py
index <HASH>..<HASH> 100644
--- a/spyder/utils/programs.py
+++ b/spyder/utils/programs.py
@@ -440,9 +440,10 @@ def is_module_installed(module_name, version=None, installed_version=None,
else:
f.write("print(is_module... | fsync required to write data to disk | py |
diff --git a/tests/generic.py b/tests/generic.py
index <HASH>..<HASH> 100644
--- a/tests/generic.py
+++ b/tests/generic.py
@@ -14,7 +14,11 @@ import trimesh
from collections import deque
-from StringIO import StringIO
+#python 3
+try:
+ from cStringIO import StringIO
+except ImportError:
+ from io im... | python 3 fix to test | py |
diff --git a/src/toil/lib/processes.py b/src/toil/lib/processes.py
index <HASH>..<HASH> 100644
--- a/src/toil/lib/processes.py
+++ b/src/toil/lib/processes.py
@@ -35,8 +35,11 @@ def which( name, path=None ):
given name in a directory on the given path or the PATH environment variable if no path was
passed
-... | Make the which test not assume that you are always using system coreutils | py |
diff --git a/tests/test_tree_sequences.py b/tests/test_tree_sequences.py
index <HASH>..<HASH> 100644
--- a/tests/test_tree_sequences.py
+++ b/tests/test_tree_sequences.py
@@ -579,6 +579,19 @@ class testDataMatrixIterator(unittest.TestCase):
self.assertTrue(np.array_equal(dm.selected_positions, pos_slice))
... | Add test_nonoverlapping_slices | py |
diff --git a/wfdb/io/record.py b/wfdb/io/record.py
index <HASH>..<HASH> 100644
--- a/wfdb/io/record.py
+++ b/wfdb/io/record.py
@@ -2048,17 +2048,14 @@ def sampfreq(record_name, pn_dir=None):
>>> ECG 4 500
"""
- dir_name, base_record_name = os.path.split(record_name)
- dir_name = os.path.abspath(dir... | Refactors code / removes previously used code | py |
diff --git a/stanfordnlp/models/common/pretrain.py b/stanfordnlp/models/common/pretrain.py
index <HASH>..<HASH> 100644
--- a/stanfordnlp/models/common/pretrain.py
+++ b/stanfordnlp/models/common/pretrain.py
@@ -2,6 +2,8 @@
Supports for pretrained data.
"""
import os
+import re
+
import lzma
import logging
import ... | Split on tabs as well as spaces - google vectors have tabs | py |
diff --git a/eqcorrscan/utils/stacking.py b/eqcorrscan/utils/stacking.py
index <HASH>..<HASH> 100644
--- a/eqcorrscan/utils/stacking.py
+++ b/eqcorrscan/utils/stacking.py
@@ -96,6 +96,16 @@ def PWS_stack(streams, weight=2, normalize=True):
def align_traces(trace_list, shift_len, master=False):
"""
Align trac... | Add doc-string re: shift_len too large warning @xiansch noticed the warning that is common-place and wasn't familiar with it, so add doc-string to elucidate this. | py |
diff --git a/angr/engines/vex/heavy/resilience.py b/angr/engines/vex/heavy/resilience.py
index <HASH>..<HASH> 100644
--- a/angr/engines/vex/heavy/resilience.py
+++ b/angr/engines/vex/heavy/resilience.py
@@ -24,8 +24,10 @@ class HeavyResilienceMixin(VEXResilienceMixin, ClaripyDataMixin):
return self.__make_defa... | fix logic for unsupported dirty op resilience; closes #<I> | py |
diff --git a/kafka/consumer/__init__.py b/kafka/consumer/__init__.py
index <HASH>..<HASH> 100644
--- a/kafka/consumer/__init__.py
+++ b/kafka/consumer/__init__.py
@@ -1,6 +1,6 @@
from .simple import SimpleConsumer
from .multiprocess import MultiProcessConsumer
-from .kafka import KafkaConsumer
+from .group import Kaf... | Switch to new KafkaConsumer in module imports | py |
diff --git a/salt/states/postgres_database.py b/salt/states/postgres_database.py
index <HASH>..<HASH> 100644
--- a/salt/states/postgres_database.py
+++ b/salt/states/postgres_database.py
@@ -71,7 +71,7 @@ def present(name,
System user all operations should be performed on behalf of
db_user
- data... | Documentation fix in salt/states/postgres_database.py Small typo fix in the documentation. | py |
diff --git a/formcreator/__init__.py b/formcreator/__init__.py
index <HASH>..<HASH> 100644
--- a/formcreator/__init__.py
+++ b/formcreator/__init__.py
@@ -27,8 +27,7 @@ class MainApp(object):
self.cmds = OrderedDict([(c.name, c) for c in cmds])
self.app = Flask(__name__)
self.config = os.path... | Silent when there is no app.cfg file | py |
diff --git a/salt/cloud/clouds/ec2.py b/salt/cloud/clouds/ec2.py
index <HASH>..<HASH> 100644
--- a/salt/cloud/clouds/ec2.py
+++ b/salt/cloud/clouds/ec2.py
@@ -961,10 +961,18 @@ def ssh_interface(vm_):
Return the ssh_interface type to connect to. Either 'public_ips' (default)
or 'private_ips'.
'''
- re... | validate ssh_interface for ec2 and default to public_ips | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -26,7 +26,7 @@ def read(fname):
return io.open(file_path, encoding='utf-8').read()
-version = '0.7.2.dev0'
+version = '0.7.2'
setuptools.setup( | Preparing release <I> | py |
diff --git a/imagen/__init__.py b/imagen/__init__.py
index <HASH>..<HASH> 100644
--- a/imagen/__init__.py
+++ b/imagen/__init__.py
@@ -1038,6 +1038,10 @@ class Sweeper(PatternGenerator):
The speed with which the pattern should move,
in sheet coordinates per time_fn unit.""")
+ relative_motion_ori... | Allow any arbitrary direction for moving patterns | py |
diff --git a/epab/utils/_pipenv.py b/epab/utils/_pipenv.py
index <HASH>..<HASH> 100644
--- a/epab/utils/_pipenv.py
+++ b/epab/utils/_pipenv.py
@@ -56,4 +56,4 @@ def write_reqs(ctx, auto_commit: bool):
files_to_add = ['Pipfile', 'Pipfile.lock',
'requirements.txt', 'requirements-dev.txt'... | chg: reqs update should not skip ci | py |
diff --git a/crust/query.py b/crust/query.py
index <HASH>..<HASH> 100644
--- a/crust/query.py
+++ b/crust/query.py
@@ -131,6 +131,15 @@ class Query(object):
rnum += 1
yield item
+ def delete(self):
+ """
+ Deletes the results of this query, it first fetches all the i... | Make it possible to delete the results of a QuerySet | py |
diff --git a/py/testdir_single_jvm/test_NN2_twovalues.py b/py/testdir_single_jvm/test_NN2_twovalues.py
index <HASH>..<HASH> 100644
--- a/py/testdir_single_jvm/test_NN2_twovalues.py
+++ b/py/testdir_single_jvm/test_NN2_twovalues.py
@@ -18,10 +18,11 @@ class test_NN_twovalues(unittest.TestCase):
@classmethod
de... | change to single jvm in cloud build, and do the normal SEED init/print method | py |
diff --git a/salt/states/firewalld.py b/salt/states/firewalld.py
index <HASH>..<HASH> 100644
--- a/salt/states/firewalld.py
+++ b/salt/states/firewalld.py
@@ -173,14 +173,35 @@ def present(name,
'''
Ensure a zone has specific attributes.
- :param str name:
+ name
The zone to modify.
- :p... | Added all standard parameters to the docblock for present() | py |
diff --git a/salt/client/__init__.py b/salt/client/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/client/__init__.py
+++ b/salt/client/__init__.py
@@ -1575,6 +1575,17 @@ class Caller(object):
# Or call objects directly
caller.sminion.functions['cmd.run']('ls -l')
+
+ Note, a running master or... | Added documentation on how to use local mode with Caller() class Closes #<I> | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -162,7 +162,7 @@ except ImportError:
def setup(app):
app.add_stylesheet('theme_override.css')
-
+
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a li... | MNT: Clean up title for HTML docs Until we start deploying release and dev docs, lets get rid of the extra git versioning from the title of the docs. | py |
diff --git a/scriptcwl/step.py b/scriptcwl/step.py
index <HASH>..<HASH> 100644
--- a/scriptcwl/step.py
+++ b/scriptcwl/step.py
@@ -75,6 +75,9 @@ class Step:
typ = inp.get('type')
if isinstance(typ, six.string_types):
return typ.endswith('?')
+ elif isinstance(typ, dict):
+ ... | Re-add check for dict type in _input_optional Step inputs can still be dictionaries after all. Re-add check removed in a previous commit. | py |
diff --git a/satpy/writers/cf_writer.py b/satpy/writers/cf_writer.py
index <HASH>..<HASH> 100644
--- a/satpy/writers/cf_writer.py
+++ b/satpy/writers/cf_writer.py
@@ -134,6 +134,7 @@ def area2gridmapping(dataarray):
def area2cf(dataarray, strict=False):
res = []
+ dataarray = dataarray.copy(deep=True)
i... | Do not modify datasets when saving to netcdf | py |
diff --git a/util.py b/util.py
index <HASH>..<HASH> 100644
--- a/util.py
+++ b/util.py
@@ -54,6 +54,11 @@ def get_platform ():
# fall through to standard osname-release-machine representation
elif osname[:4] == "irix": # could be "irix64"!
return "%s-%s" % (osname, release)
+ elif... | Patch #<I> from Jason Tishler: This patch adds support for Cygwin to util.get_platform(). A Cygwin specific case is needed due to the format of Cygwin's uname command, which contains '/' characters. | py |
diff --git a/niworkflows/__about__.py b/niworkflows/__about__.py
index <HASH>..<HASH> 100644
--- a/niworkflows/__about__.py
+++ b/niworkflows/__about__.py
@@ -7,14 +7,13 @@ These pipelines are developed by the Poldrack lab at Stanford University
the Center for Reproducible Neuroscience (http://reproducibility.stanford... | [skip ci] minor details | py |
diff --git a/thumbnails/conf/wrapper.py b/thumbnails/conf/wrapper.py
index <HASH>..<HASH> 100644
--- a/thumbnails/conf/wrapper.py
+++ b/thumbnails/conf/wrapper.py
@@ -3,6 +3,8 @@
import importlib
import os
+from thumbnails.compat import makedirs
+
from . import defaults
@@ -27,7 +29,8 @@ class SettingsWrapper(... | Add creation parent folder to thumbnail-cache folder | py |
diff --git a/pachyderm/histogram.py b/pachyderm/histogram.py
index <HASH>..<HASH> 100644
--- a/pachyderm/histogram.py
+++ b/pachyderm/histogram.py
@@ -96,7 +96,7 @@ def _retrieve_object(output_dict: Dict[str, Any], obj: Any) -> None:
if isinstance(obj, ROOT.TCollection):
# Keeping it in order simply makes... | Attempt to modify failing line to fix Travis tests It's not clear why this should be a problem. But the tests still work without explicitly making it a list, and it seems to be the only obvious possible change to that line | 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
@@ -1,4 +1,4 @@
-from __future__ import division, print_function
+from __future__ import print_function
from collections import Counter, defaultdict, deque
from functool... | Remove extra commas in docstrings | py |
diff --git a/aiozk/session.py b/aiozk/session.py
index <HASH>..<HASH> 100644
--- a/aiozk/session.py
+++ b/aiozk/session.py
@@ -2,6 +2,7 @@ import asyncio
import collections
import logging
import random
+import re
# from tornado import gen, ioloop
@@ -27,8 +28,11 @@ class Session(object):
self.loop = lo... | Allow use of ipv6 literals in connect string | py |
diff --git a/ipopt/version.py b/ipopt/version.py
index <HASH>..<HASH> 100644
--- a/ipopt/version.py
+++ b/ipopt/version.py
@@ -12,4 +12,4 @@ URL: https://github.com/matthias-k/cyipopt
License: EPL 1.0
"""
-__version__ = '0.1.9'
+__version__ = '0.2.0.dev0' | Bumped to version <I>.dev0. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.