diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/tests/test_configuration.py b/tests/test_configuration.py
index <HASH>..<HASH> 100644
--- a/tests/test_configuration.py
+++ b/tests/test_configuration.py
@@ -32,6 +32,8 @@ CHANGE_KEYS = ['adult', 'air_date', 'also_known_as', 'alternative_titles', \
'releases', 'revenue', 'runtime', 'season', 'season_n... | Change a string to a constant | py |
diff --git a/src/__init__.py b/src/__init__.py
index <HASH>..<HASH> 100644
--- a/src/__init__.py
+++ b/src/__init__.py
@@ -275,7 +275,8 @@ class Pool:
Q.put(error)
dead = True
- if not dead: Q.put((i, out))
+ if not dead:
+ Q.put((i, out))
S.task_done()
P = ... | detect if a child died abnormaly and raise exception. | py |
diff --git a/pycoin/networks/registry.py b/pycoin/networks/registry.py
index <HASH>..<HASH> 100644
--- a/pycoin/networks/registry.py
+++ b/pycoin/networks/registry.py
@@ -19,7 +19,7 @@ def register_network(network_info):
by its netcode.
"""
assert isinstance(network_info, Network)
- code = network_inf... | Don't allow netcodes to be lowercase. | py |
diff --git a/tests/test_cli.py b/tests/test_cli.py
index <HASH>..<HASH> 100644
--- a/tests/test_cli.py
+++ b/tests/test_cli.py
@@ -55,10 +55,29 @@ def test_ls(mocker, capsys):
assert isinstance(out, str)
-def test_version(mocker, capsys):
+def test_arg_version(mocker, capsys):
testargs = ["cz", "--version... | test(cli): cover test for warnings | py |
diff --git a/pmxbot/core.py b/pmxbot/core.py
index <HASH>..<HASH> 100644
--- a/pmxbot/core.py
+++ b/pmxbot/core.py
@@ -22,6 +22,7 @@ import irc.client
import irc.schedule
import pkg_resources
from jaraco import dateutil
+from jaraco.util.itertools import always_iterable
import pmxbot.itertools
import pmxbot.dict... | Use always_iterable to allow None to be passed for aliases | py |
diff --git a/irc/bot.py b/irc/bot.py
index <HASH>..<HASH> 100644
--- a/irc/bot.py
+++ b/irc/bot.py
@@ -12,15 +12,13 @@ write simpler bots.
from __future__ import absolute_import
-from collections import namedtuple
import sys
import irc.client
import irc.modes
from .dict import IRCDict
-_ServerSpec = namedt... | Revert changes in 1ff<I>e<I>e<I>b to bot.py (See PR #<I> for rationale). | py |
diff --git a/pymatgen/symmetry/structure.py b/pymatgen/symmetry/structure.py
index <HASH>..<HASH> 100644
--- a/pymatgen/symmetry/structure.py
+++ b/pymatgen/symmetry/structure.py
@@ -84,6 +84,9 @@ class SymmetrizedStructure(Structure):
raise ValueError("Site not in structure")
+ def __repr__(self):
+ ... | Set repr to str for SymmetrizedStructure. | py |
diff --git a/tests/integration/test_install_twists.py b/tests/integration/test_install_twists.py
index <HASH>..<HASH> 100644
--- a/tests/integration/test_install_twists.py
+++ b/tests/integration/test_install_twists.py
@@ -8,7 +8,6 @@ from pipenv.utils import mkdir_p, temp_environ
import pytest
from flaky import fl... | Remove unnecessary test marks and imports. | py |
diff --git a/libexec/windows_shares_discovery_runner.py b/libexec/windows_shares_discovery_runner.py
index <HASH>..<HASH> 100755
--- a/libexec/windows_shares_discovery_runner.py
+++ b/libexec/windows_shares_discovery_runner.py
@@ -102,9 +102,9 @@ for line in stdoutdata.splitlines():
if len(disks) > 0:
- print "... | Fix: Result did not print the hostname. | py |
diff --git a/taxtastic/taxonomy.py b/taxtastic/taxonomy.py
index <HASH>..<HASH> 100644
--- a/taxtastic/taxonomy.py
+++ b/taxtastic/taxonomy.py
@@ -141,8 +141,9 @@ class Taxonomy(object):
return tax_id, tax_name, bool(is_primary)
def _get_merged(self, old_tax_id):
- """
- Returns tax_id int... | Made _get_lineage in taxonomy merge old taxids automatically unless explicitly told not to. | py |
diff --git a/membersuite_api_client/memberships/services.py b/membersuite_api_client/memberships/services.py
index <HASH>..<HASH> 100644
--- a/membersuite_api_client/memberships/services.py
+++ b/membersuite_api_client/memberships/services.py
@@ -90,7 +90,7 @@ class MembershipService(object):
# Check if ... | Membership Recursion Fix Same problem we had with organizations where the logic for recursion was always returning False due to max_depth having NoneType. | py |
diff --git a/salt/client/mixins.py b/salt/client/mixins.py
index <HASH>..<HASH> 100644
--- a/salt/client/mixins.py
+++ b/salt/client/mixins.py
@@ -434,12 +434,15 @@ class AsyncClientMixin(object):
# Check if ouputter was passed in the return data. If this is the case,
# then the return data will be ... | Fix <I> Not all events are returns, so we should do a .get() instead of a direct access This should fix this regression which was introduced in #<I> We are still changing the output to *always* use an outputter, but thats probably okay since the async_event print stuff *is* new | py |
diff --git a/tests/test_nonlinear.py b/tests/test_nonlinear.py
index <HASH>..<HASH> 100644
--- a/tests/test_nonlinear.py
+++ b/tests/test_nonlinear.py
@@ -261,7 +261,7 @@ def test_gastrans():
if scip.getStatus() == 'timelimit':
pytest.skip()
- assert abs(scip.getPrimalbound() - 89.08584) < 1.0e-9
+ ... | Update test_nonlinear.py Fixing assert failure if scip is compiled using quadprecision | py |
diff --git a/tornado/iostream.py b/tornado/iostream.py
index <HASH>..<HASH> 100644
--- a/tornado/iostream.py
+++ b/tornado/iostream.py
@@ -396,13 +396,21 @@ class BaseIOStream(object):
return
self._check_closed()
try:
- # See comments in _handle_read about incrementing _pending... | Add an exception handler in _try_inline_read to ensure close_callback is run. This is probably just a stopgap until some larger refactoring around pending_callbacks, but will help with the max_buffer_size leak. | py |
diff --git a/tools/opentsdb_restart.py b/tools/opentsdb_restart.py
index <HASH>..<HASH> 100644
--- a/tools/opentsdb_restart.py
+++ b/tools/opentsdb_restart.py
@@ -8,8 +8,11 @@ This is known to work with python2.6 and above.
import os
import subprocess
+service_name = "opentsdb"
+if 'NAME' in os.environ:
+ servic... | make OOM handler be able to handle multiple instances of opentsdb server | py |
diff --git a/bika/lims/browser/analysisrequest/add.py b/bika/lims/browser/analysisrequest/add.py
index <HASH>..<HASH> 100644
--- a/bika/lims/browser/analysisrequest/add.py
+++ b/bika/lims/browser/analysisrequest/add.py
@@ -205,7 +205,7 @@ class ajaxAnalysisRequestSubmit():
'SampleType'
... | Better required-field handling in ar_add Prevent ARs from slipping by with required fields uncompleted | py |
diff --git a/warcio/warcwriter.py b/warcio/warcwriter.py
index <HASH>..<HASH> 100644
--- a/warcio/warcwriter.py
+++ b/warcio/warcwriter.py
@@ -58,12 +58,13 @@ class BaseWARCWriter(object):
if not block_digester and not payload_digester:
return
- if hasattr(record.raw_stream, 'seek'):
- ... | writer: attempt to seek instead of checking for presence | py |
diff --git a/blitzdb/backends/file/index.py b/blitzdb/backends/file/index.py
index <HASH>..<HASH> 100644
--- a/blitzdb/backends/file/index.py
+++ b/blitzdb/backends/file/index.py
@@ -51,8 +51,8 @@ class Index(object):
def clear(self):
"""Clear index."""
- self._index = defaultdict(lambda: [])
- ... | Avoid using lambda when not needed | py |
diff --git a/treeherder/etl/management/commands/ingest_push_and_tasks.py b/treeherder/etl/management/commands/ingest_push_and_tasks.py
index <HASH>..<HASH> 100644
--- a/treeherder/etl/management/commands/ingest_push_and_tasks.py
+++ b/treeherder/etl/management/commands/ingest_push_and_tasks.py
@@ -8,6 +8,7 @@ from djan... | Fix: Add TC root url for management command where missing | py |
diff --git a/lavalink/PlayerManager.py b/lavalink/PlayerManager.py
index <HASH>..<HASH> 100644
--- a/lavalink/PlayerManager.py
+++ b/lavalink/PlayerManager.py
@@ -14,6 +14,10 @@ class BasePlayer(ABC):
async def handle_event(self, event):
raise NotImplementedError
+ @abstractmethod
+ async def ... | Add cleanup method to baseplayer to be used when a player is removed | py |
diff --git a/baron/render.py b/baron/render.py
index <HASH>..<HASH> 100644
--- a/baron/render.py
+++ b/baron/render.py
@@ -18,19 +18,19 @@ def render(node):
better, you should subclass the RenderWalker which simplifies
drastically working with the rendered FST.
- The recipe is a list of steps, each step ... | [doc] fix docstring syntaxe to please sphinx | py |
diff --git a/mambustruct.py b/mambustruct.py
index <HASH>..<HASH> 100644
--- a/mambustruct.py
+++ b/mambustruct.py
@@ -1,7 +1,6 @@
# coding: utf-8
"""Base class for all Mambu objects.
-from mambuutil import API_RETURN_CODES, MambuCommError, MambuError, OUT_OF_BOUNDS_PAGINATION_LIMIT_VALUE, iriToUri
Includes functi... | API_RETURN_CODES is going to be deprecated | py |
diff --git a/client/wdb/__init__.py b/client/wdb/__init__.py
index <HASH>..<HASH> 100644
--- a/client/wdb/__init__.py
+++ b/client/wdb/__init__.py
@@ -265,7 +265,7 @@ class Wdb(object):
stop_frame = None
iframe = frame
while iframe is not None:
- if iframe.f_code ==... | Dont fail out when ran under say a C-based WSGIHandler | py |
diff --git a/cwltool/load_tool.py b/cwltool/load_tool.py
index <HASH>..<HASH> 100644
--- a/cwltool/load_tool.py
+++ b/cwltool/load_tool.py
@@ -46,7 +46,8 @@ def _convert_stdstreams_to_files(workflowobj):
# type: (Union[Dict[unicode, Any], List[Dict[unicode, Any]]) -> None
if isinstance(workflowobj, dict):
-... | restore parsing of draft-2 CWL documents | py |
diff --git a/graphene_pynamodb/fields.py b/graphene_pynamodb/fields.py
index <HASH>..<HASH> 100644
--- a/graphene_pynamodb/fields.py
+++ b/graphene_pynamodb/fields.py
@@ -38,12 +38,8 @@ class PynamoConnectionField(relay.ConnectionField):
connection_type = connection
pageinfo_type = PageInfo
- ... | Removed unused code, relationships are resolved earlier | py |
diff --git a/hardware/opentrons_hardware/firmware_bindings/messages/payloads.py b/hardware/opentrons_hardware/firmware_bindings/messages/payloads.py
index <HASH>..<HASH> 100644
--- a/hardware/opentrons_hardware/firmware_bindings/messages/payloads.py
+++ b/hardware/opentrons_hardware/firmware_bindings/messages/payloads.... | fix(hardware): ot3: fix incorrect field order in move (#<I>) The field order of this move did not match the order of the fields on the firmware side, leading to off-by-one-byte deserialization that caused massive problems. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -35,7 +35,7 @@ setup(
download_url = 'https://github.com/CleanCut/green/tarball/' + version,
keywords = ['nose', 'nose2', 'trial', 'tox', 'green', 'test', 'tests', 'functional test', 'system test', 'unit test', 'unit... | Switched our 'Development Status' PyPi classifier to production/stable for the next time we issue a release. | py |
diff --git a/docs/source/conf.py b/docs/source/conf.py
index <HASH>..<HASH> 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -66,9 +66,9 @@ author = 'Simo Linkola'
# built documents.
#
# The short X.Y version.
-version = '0.2.0'
+version = '0.3'
# The full version, including alpha/beta/rc tags.
-releas... | Changed version number in sphinx's conf.py | py |
diff --git a/test/test_large_read.py b/test/test_large_read.py
index <HASH>..<HASH> 100644
--- a/test/test_large_read.py
+++ b/test/test_large_read.py
@@ -53,8 +53,5 @@ def test_large_read_multiple_bytes(test_capnp):
for m in test_capnp.Msg.read_multiple_bytes(data):
pass
- for m in test_capnp.Msg.re... | Update test to support <I> | py |
diff --git a/basc_py4chan/board.py b/basc_py4chan/board.py
index <HASH>..<HASH> 100644
--- a/basc_py4chan/board.py
+++ b/basc_py4chan/board.py
@@ -203,7 +203,8 @@ class Board(object):
Returns:
list of :mod:`basc_py4chan.Thread`: List of Thread objects representing the threads on the given page.
... | Generate correct URL in the Board's get_threads() method Fixes #<I> | py |
diff --git a/boundary/metric_modify.py b/boundary/metric_modify.py
index <HASH>..<HASH> 100644
--- a/boundary/metric_modify.py
+++ b/boundary/metric_modify.py
@@ -59,7 +59,7 @@ class MetricModify (MetricCommon):
self.parser.add_argument('-r', '--resolution', dest='resolution', action='store', metavar='resoluti... | Change the argument to take true/false rather than yes/no to match the JSON payload | py |
diff --git a/linode/objects/config.py b/linode/objects/config.py
index <HASH>..<HASH> 100644
--- a/linode/objects/config.py
+++ b/linode/objects/config.py
@@ -23,3 +23,16 @@ class Config(DerivedBase):
DerivedBase.__init__(self, linode_id, parent_id_name='linode_id')
self._set('id', id)
+
+ def _p... | Configs now populate disks with relationships | py |
diff --git a/broqer/core.py b/broqer/core.py
index <HASH>..<HASH> 100644
--- a/broqer/core.py
+++ b/broqer/core.py
@@ -136,7 +136,7 @@ class StatefulPublisher(Publisher):
return Publisher.notify(self, value)
return None
- def reset_state(self, value):
+ def reset_state(self, value=UNINITIA... | reset_state() without arg is setting UNINITIALIZED in StatefulPublisher | py |
diff --git a/dwave/cloud/client.py b/dwave/cloud/client.py
index <HASH>..<HASH> 100644
--- a/dwave/cloud/client.py
+++ b/dwave/cloud/client.py
@@ -155,7 +155,7 @@ class Client(object):
# Number of worker threads for each problem processing task
_SUBMISSION_THREAD_COUNT = 5
_UPLOAD_PROBLEM_THREAD_COUNT = ... | Add trace logs to multipart requests | py |
diff --git a/tests/regressions.py b/tests/regressions.py
index <HASH>..<HASH> 100644
--- a/tests/regressions.py
+++ b/tests/regressions.py
@@ -517,7 +517,7 @@ class TestOptimisticLockingDemo(ModelTestCase):
self.assertRaises(ConflictDetectedException, vt.save_optimistic)
self.assertEqual(vt.version, 1... | Whoops, fix incorrect expression in test. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -52,7 +52,7 @@ setup(name="polysquare-setuptools-lint",
cmdclass=_CMDCLASS,
install_requires=[
"setuptools",
- "jobstamps>=0.0.6",
+ "jobstamps>=0.0.8",
"parmap",
... | Depend on jobstamps>=<I> | py |
diff --git a/src/edeposit/amqp/harvester/structures.py b/src/edeposit/amqp/harvester/structures.py
index <HASH>..<HASH> 100755
--- a/src/edeposit/amqp/harvester/structures.py
+++ b/src/edeposit/amqp/harvester/structures.py
@@ -221,3 +221,12 @@ class Publication(object):
return False
return T... | structures.py: Added new class Publications. Fixed #9. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,14 +7,14 @@ f.close()
setup(
name='name-cleaver',
- version='0.4.2',
+ version='0.4.3',
description='Name parser and formatter (for politicians, individuals, and organizations)',
long_description=rea... | Change argument to find_packages and increment version | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -19,9 +19,6 @@ entry_points = {
runtime = {
'pyyaml>=3.10,<=3.12',
- 'tornado>=4.2.1',
- 'futures==3.0.5',
- 'requests==2.13.0',
}
develop = {
@@ -32,6 +29,8 @@ develop = {
'Sphinx',
'sphinx_rtd_... | Prepare for release on pypi (#<I>) * Adding package metadata for pypi * Removing unnecessary runtime dependencies requests and futures are only used by the archive tool script, so they are moved to the develop dependency section. | py |
diff --git a/worker/buildbot_worker/base.py b/worker/buildbot_worker/base.py
index <HASH>..<HASH> 100644
--- a/worker/buildbot_worker/base.py
+++ b/worker/buildbot_worker/base.py
@@ -70,6 +70,9 @@ class ProtocolCommand:
def protocol_update_read_file(self, reader, length):
return self.builder.protocol_upda... | worker: Move ack_complete() to ProtcolCommand class | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,6 +12,7 @@ def call(*cmd):
return cmd.returncode, cmd.stderr.read()
def pkgconfig(package, **kw):
+ pkg_version = package.replace('-', '_').upper() + '_VERSION'
flag_map = {'-I': 'include_dirs', '-L': '... | setup.py: allow LIBSYSTEMD_VERSION to be overridden This is useful when testing against old or unreleases versions of the library: make PYTHON=python3 INCLUDE_DIR=/home/zbyszek/src/systemd-master/src LIBSYSTEMD_VERSION=<I> | py |
diff --git a/c7n/resources/redshift.py b/c7n/resources/redshift.py
index <HASH>..<HASH> 100644
--- a/c7n/resources/redshift.py
+++ b/c7n/resources/redshift.py
@@ -114,6 +114,6 @@ class Delete(BaseAction):
params['SkipFinalClusterSnapshot'] = True
else:
params['FinalCluster... | Swapped Redshift db cluster id with now date/time in final snapshot id (#<I>) * Swapped db cluster id with now date/time in final snapshot id | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,7 @@ setup(
''',
author='Anthony Plunkett',
py_modules=['flask_gunicorn'],
- requires=[
+ install_requires=[
'Flask',
'gunicorn',
] | `requires` changed to `install_requires` | py |
diff --git a/salt/modules/file.py b/salt/modules/file.py
index <HASH>..<HASH> 100644
--- a/salt/modules/file.py
+++ b/salt/modules/file.py
@@ -1122,10 +1122,10 @@ def replace(path,
repl = str(repl)
try:
fi_file = fileinput.input(path,
- inplace=not dry_run,
+ ... | Don't empty the file when it is supposed to be only read. Iterating over an fileinput.input() object with inplace=True and not returning any results per iteration leaves an empty input file. | py |
diff --git a/bayes_opt/bayesian_optimization.py b/bayes_opt/bayesian_optimization.py
index <HASH>..<HASH> 100644
--- a/bayes_opt/bayesian_optimization.py
+++ b/bayes_opt/bayesian_optimization.py
@@ -167,6 +167,33 @@ class BayesianOptimization(object):
self.x_init.append(all_points)
+ def initialize_... | Added initialization from pandas DataFrame | py |
diff --git a/tests/test_live_server.py b/tests/test_live_server.py
index <HASH>..<HASH> 100755
--- a/tests/test_live_server.py
+++ b/tests/test_live_server.py
@@ -116,3 +116,14 @@ class TestLiveServer:
result = appdir.runpytest('-v', '--no-start-live-server')
result.stdout.fnmatch_lines(['*PASSED*'])
... | Ensure the live server respect wait timeout | py |
diff --git a/python/src/cm_api/api_client.py b/python/src/cm_api/api_client.py
index <HASH>..<HASH> 100644
--- a/python/src/cm_api/api_client.py
+++ b/python/src/cm_api/api_client.py
@@ -29,7 +29,7 @@ __docformat__ = "epytext"
LOG = logging.getLogger(__name__)
API_AUTH_REALM = "Cloudera Manager"
-
+API_CURRENT_VERS... | [py] Switch to use API v2 by default | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -35,7 +35,6 @@ extensions = [
'sphinx.ext.intersphinx',
'sphinx.ext.todo',
'sphinx.ext.coverage',
- 'sphinx.ext.imgmath',
'sphinx.ext.ifconfig',
'sphinx.ext.viewcode',
] | removed imgmath ext from sphinx for readthedocs | py |
diff --git a/pyrax/autoscale.py b/pyrax/autoscale.py
index <HASH>..<HASH> 100644
--- a/pyrax/autoscale.py
+++ b/pyrax/autoscale.py
@@ -277,6 +277,12 @@ class ScalingGroup(BaseResource):
class ScalingGroupManager(BaseManager):
+ def __init__(self, api, resource_class=None, response_key=None,
+ plural_... | didn't mean to remove that __init__ method (though I think it's a no-op) | py |
diff --git a/client/deis.py b/client/deis.py
index <HASH>..<HASH> 100755
--- a/client/deis.py
+++ b/client/deis.py
@@ -995,7 +995,9 @@ class DeisClient(object):
if response.status_code == requests.codes.ok:
config = response.json()
values = config['values']
- self._logger.i... | feat(deis/config): remove "===" when listing configs with --oneline This makes it easier to transfer configs from one app to another. See: #<I> for reference. | py |
diff --git a/nolearn/dataset.py b/nolearn/dataset.py
index <HASH>..<HASH> 100644
--- a/nolearn/dataset.py
+++ b/nolearn/dataset.py
@@ -63,7 +63,7 @@ class Dataset(object):
return StratifiedShuffleSplit(
self.target,
indices=True,
- n_iterations=self.n_iterations,
+ ... | Argument n_iterations was renamed. | py |
diff --git a/tests/test_migrations.py b/tests/test_migrations.py
index <HASH>..<HASH> 100644
--- a/tests/test_migrations.py
+++ b/tests/test_migrations.py
@@ -46,6 +46,7 @@ class MigrationsTestCase(TestCase):
content = re.sub(r'\s', '', content)
self.assertEqual(len(re.findall(r"migrations\.AddIndex\(... | Test that partial_index.PF is imported directly, not from .query in migrations. | py |
diff --git a/prosper/common/prosper_utilities.py b/prosper/common/prosper_utilities.py
index <HASH>..<HASH> 100644
--- a/prosper/common/prosper_utilities.py
+++ b/prosper/common/prosper_utilities.py
@@ -7,8 +7,6 @@ import smtplib
from datetime import datetime
import time
-import pytest
-
from prosper.common.prospe... | removing pytest call from prosper_utilities | py |
diff --git a/keen/client.py b/keen/client.py
index <HASH>..<HASH> 100644
--- a/keen/client.py
+++ b/keen/client.py
@@ -407,7 +407,8 @@ class KeenClient(object):
return self.api.query("multi_analysis", params)
def get_params(self, event_collection=None, timeframe=None, timezone=None, interval=None, filte... | Updated get_params to take property_names | py |
diff --git a/htmresearch/algorithms/union_temporal_pooler.py b/htmresearch/algorithms/union_temporal_pooler.py
index <HASH>..<HASH> 100644
--- a/htmresearch/algorithms/union_temporal_pooler.py
+++ b/htmresearch/algorithms/union_temporal_pooler.py
@@ -321,4 +321,5 @@ class UnionTemporalPooler(SpatialPooler):
def ... | undo comments to TP, save it for a later PR | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -320,13 +320,8 @@ install_requires = [
'psutil'
]
-setup_requires = [
- 'sphinx'
-]
-
if 'setuptools' in sys.modules:
setup_args['install_requires'] = install_requires
- setup_args['setup_requires'] = setup... | setup.py: Revert trying to use Sphinx during build time - Sphinx needs to be installed *before* setup is called, else we can't create our docs locally. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -27,7 +27,7 @@ setup(
description=next(x for x in long_description.splitlines() if x.strip()),
long_description='.. contents::\n\n' + long_description,
keywords='linux usb gadget functionfs',
- version='0.4',... | Bump to <I> . To un-release unfinished changes. | py |
diff --git a/proton-c/bindings/python/setup.py b/proton-c/bindings/python/setup.py
index <HASH>..<HASH> 100755
--- a/proton-c/bindings/python/setup.py
+++ b/proton-c/bindings/python/setup.py
@@ -20,11 +20,17 @@
from distutils.core import setup, Extension
-setup(name='Proton',
+setup(name='python-qpid-proton',
... | PROTON-<I>: fix setup.py Include the cproton.py generated module. Add libqpid-proton as a library of the extension. Fix the library name. Add proper meta-information for Pypi index. | py |
diff --git a/cufflinks/__init__.py b/cufflinks/__init__.py
index <HASH>..<HASH> 100644
--- a/cufflinks/__init__.py
+++ b/cufflinks/__init__.py
@@ -6,6 +6,7 @@ It also provides tools for color generation and transformation.
Author: @jorgesantos
"""
+from __future__ import absolute_import
from . import date_tools
... | added absolute imports for python 2 | py |
diff --git a/vcs_repo_mgr/__init__.py b/vcs_repo_mgr/__init__.py
index <HASH>..<HASH> 100644
--- a/vcs_repo_mgr/__init__.py
+++ b/vcs_repo_mgr/__init__.py
@@ -110,7 +110,7 @@ from vcs_repo_mgr.exceptions import (
)
# Semi-standard module versioning.
-__version__ = '0.32.1'
+__version__ = '0.33'
USER_CONFIG_FILE ... | Release <I>: Support for pushing between repositories | py |
diff --git a/tests/test_neutron_context.py b/tests/test_neutron_context.py
index <HASH>..<HASH> 100644
--- a/tests/test_neutron_context.py
+++ b/tests/test_neutron_context.py
@@ -27,11 +27,17 @@ class TestNeutronContext(test_base.TestBase):
read_policy_file_patch = mock.patch(
"neutron.common.util... | Fixed problem with new advsvc check in policy | py |
diff --git a/djoser/urls/__init__.py b/djoser/urls/__init__.py
index <HASH>..<HASH> 100644
--- a/djoser/urls/__init__.py
+++ b/djoser/urls/__init__.py
@@ -1 +1,3 @@
from .base import urlpatterns
+
+__all__ = ['urlpatterns'] | Fix urls __init__ F<I> with __all__ | py |
diff --git a/pyrogram/client/methods/messages/send_video.py b/pyrogram/client/methods/messages/send_video.py
index <HASH>..<HASH> 100644
--- a/pyrogram/client/methods/messages/send_video.py
+++ b/pyrogram/client/methods/messages/send_video.py
@@ -133,7 +133,7 @@ class SendVideo(BaseClient):
try:
... | Added missing 'await' on thumb | py |
diff --git a/benchexec/test_tool_info.py b/benchexec/test_tool_info.py
index <HASH>..<HASH> 100644
--- a/benchexec/test_tool_info.py
+++ b/benchexec/test_tool_info.py
@@ -71,7 +71,9 @@ def print_tool_info(name):
if not os.path.isabs(executable):
print_value('Executable (absolute path)', os.path.abspath(ex... | Rephrase warning from <I>e<I>b to make it more clear when it applies. | py |
diff --git a/docs/source/conf.py b/docs/source/conf.py
index <HASH>..<HASH> 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -49,9 +49,9 @@ copyright = u'2010-2013, Coda Hale, Yammer Inc.'
# built documents.
#
# The short X.Y version.
-version = '0.6'
+version = '0.7'
# The full version, including alph... | Bump the version in the docs. | py |
diff --git a/tinymce/views.py b/tinymce/views.py
index <HASH>..<HASH> 100644
--- a/tinymce/views.py
+++ b/tinymce/views.py
@@ -47,7 +47,7 @@ def spell_check(request):
try:
if data['params']['lang'] not in list_languages():
error = 'Missing {0} dictionary!'.format(data['params']['lang'])
- ... | Use more appropriate exception class for missing dictionary | py |
diff --git a/gns3server/compute/base_node.py b/gns3server/compute/base_node.py
index <HASH>..<HASH> 100644
--- a/gns3server/compute/base_node.py
+++ b/gns3server/compute/base_node.py
@@ -430,7 +430,7 @@ class BaseNode:
telnet_writer.write(msg.data.encode())
await telnet_writer.... | Fix binary websocket access to the console telnet_writer.write is not an async method - drain() is. Remove async keyword so the call is the same as for the text websocket. | py |
diff --git a/icekit/plugins/contact_person/models.py b/icekit/plugins/contact_person/models.py
index <HASH>..<HASH> 100644
--- a/icekit/plugins/contact_person/models.py
+++ b/icekit/plugins/contact_person/models.py
@@ -1,19 +1,8 @@
-import os
-from django.core.urlresolvers import NoReverseMatch
from fluent_contents.mo... | Repair <I> viewing contact person | py |
diff --git a/python/ccxt/base/exchange.py b/python/ccxt/base/exchange.py
index <HASH>..<HASH> 100644
--- a/python/ccxt/base/exchange.py
+++ b/python/ccxt/base/exchange.py
@@ -910,7 +910,7 @@ class Exchange(object):
'rate': rate,
'type': taker_or_maker,
'currency': market['quote'],... | this → self in exchange.py | py |
diff --git a/pyinstrument/renderers/speedscope.py b/pyinstrument/renderers/speedscope.py
index <HASH>..<HASH> 100644
--- a/pyinstrument/renderers/speedscope.py
+++ b/pyinstrument/renderers/speedscope.py
@@ -75,16 +75,6 @@ class SpeedscopeEventEncoder(json.JSONEncoder):
return json.JSONEncoder.default(self, obj... | SpeedscopeRenderer: delete encode_speedscope_event This commit deletes the encode_speedscope_event function because it is no longer needed, and has been replaced with calls to json.dumps and SpeedscopeEventEncoder. | py |
diff --git a/warehouse/migrations/versions/e612a92c1017_add_uploader_field_to_release.py b/warehouse/migrations/versions/e612a92c1017_add_uploader_field_to_release.py
index <HASH>..<HASH> 100644
--- a/warehouse/migrations/versions/e612a92c1017_add_uploader_field_to_release.py
+++ b/warehouse/migrations/versions/e612a92... | Remove the backfill query (#<I>) | py |
diff --git a/anyconfig/api.py b/anyconfig/api.py
index <HASH>..<HASH> 100644
--- a/anyconfig/api.py
+++ b/anyconfig/api.py
@@ -17,12 +17,12 @@ MS_NO_REPLACE = "noreplace"
MS_DICTS = "merge_dicts"
MS_DICTS_AND_LISTS = "merge_dicts_and_lists"
-MERGE_STRATEGIES = dict(
- replace=M.ST_REPLACE,
- noreplace=M.ST_NO... | unify keys and symbols represent merging strategies | py |
diff --git a/exporters/writers/mail_writer.py b/exporters/writers/mail_writer.py
index <HASH>..<HASH> 100644
--- a/exporters/writers/mail_writer.py
+++ b/exporters/writers/mail_writer.py
@@ -89,5 +89,6 @@ class MailWriter(BaseWriter):
@retry(wait_exponential_multiplier=500, wait_exponential_max=10000, stop_max_a... | Sets log message before sending email and after the email is sent. | py |
diff --git a/eventsourcing/sqlite.py b/eventsourcing/sqlite.py
index <HASH>..<HASH> 100644
--- a/eventsourcing/sqlite.py
+++ b/eventsourcing/sqlite.py
@@ -73,6 +73,23 @@ class SQLiteDatastore:
c.execute("pragma journal_mode=wal;")
return c
+ def close_connection(self) -> None:
+ thread_id ... | Added methods to close connections in SQLiteDatastore. | py |
diff --git a/batchSystems/singleMachine.py b/batchSystems/singleMachine.py
index <HASH>..<HASH> 100644
--- a/batchSystems/singleMachine.py
+++ b/batchSystems/singleMachine.py
@@ -25,6 +25,7 @@ import os
import random
import subprocess
import time
+import traceback
#from threading import Thread, Lock
#from Queue ... | Altering single machine to fail when the slave fails outside of the users code. | py |
diff --git a/userena/utils.py b/userena/utils.py
index <HASH>..<HASH> 100644
--- a/userena/utils.py
+++ b/userena/utils.py
@@ -114,7 +114,7 @@ def get_profile_model():
(not settings.AUTH_PROFILE_MODULE):
raise SiteProfileNotAvailable
- profile_mod = get_model(*settings.AUTH_PROFILE_MODULE.spli... | Update utils.py Previously the herein referenced AUTH_PROFILE_MODULE could not point to a model for a subpackaged app because this get_profile_model function splits on all periods. As we know get_model takes app_label and model as arguments so for a subpackaged app this would break. This correctly interprets the app_l... | py |
diff --git a/formats/dutchsemcor.py b/formats/dutchsemcor.py
index <HASH>..<HASH> 100644
--- a/formats/dutchsemcor.py
+++ b/formats/dutchsemcor.py
@@ -62,7 +62,6 @@ class WSDSystemOutput(object):
self.append(word_id, [(fields[1],None)])
else:
senses = []
- p... | update? can't remember what I did.. too late :) git-svn-id: <URL> | py |
diff --git a/cassandra/protocol.py b/cassandra/protocol.py
index <HASH>..<HASH> 100644
--- a/cassandra/protocol.py
+++ b/cassandra/protocol.py
@@ -33,7 +33,7 @@ from cassandra.cqltypes import (AsciiType, BytesType, BooleanType,
InetAddressType, IntegerType, ListType,
... | Register type code for tuple type | py |
diff --git a/gui.py b/gui.py
index <HASH>..<HASH> 100644
--- a/gui.py
+++ b/gui.py
@@ -387,7 +387,7 @@ try:
def __init__(self,w,h,baseAppInstance,refreshInterval=500):
super(canvasWidget,self).__init__(w,h)
baseAppInstance.client.attachments = baseAppInstance.client.attachments + "<script>var timerID"+str(id... | Update gui.py Added canvasWidget | py |
diff --git a/a10_neutron_lbaas/v2/handler_member.py b/a10_neutron_lbaas/v2/handler_member.py
index <HASH>..<HASH> 100644
--- a/a10_neutron_lbaas/v2/handler_member.py
+++ b/a10_neutron_lbaas/v2/handler_member.py
@@ -12,16 +12,19 @@
# License for the specific language governing permissions and limitations
# under... | Added missing logger to member handler | py |
diff --git a/pysoundfile.py b/pysoundfile.py
index <HASH>..<HASH> 100644
--- a/pysoundfile.py
+++ b/pysoundfile.py
@@ -331,9 +331,8 @@ class SoundFile(object):
forced with the format argument (e.g. ``format='WAVEX'``).
* a *subtype*, e.g. ``'PCM_24'``. Most major formats have a
default su... | Shorter summary of endian-ness | py |
diff --git a/paramiko/hostkeys.py b/paramiko/hostkeys.py
index <HASH>..<HASH> 100644
--- a/paramiko/hostkeys.py
+++ b/paramiko/hostkeys.py
@@ -186,18 +186,28 @@ class HostKeys (MutableMapping):
entries = []
for e in self._entries:
- for h in e.hostnames:
- if (
- ... | Refactor HostKeys' scan-for-entry code | py |
diff --git a/jnrbase/attrdict.py b/jnrbase/attrdict.py
index <HASH>..<HASH> 100644
--- a/jnrbase/attrdict.py
+++ b/jnrbase/attrdict.py
@@ -82,5 +82,5 @@ class ROAttrDict(AttrDict):
Raises:
AttributeError: On modification attempt
"""
- raise AttributeError('%r is read-only' % self._... | Use __qualname__ for readability Support since <I>. | py |
diff --git a/ipywidgets/widgets/interaction.py b/ipywidgets/widgets/interaction.py
index <HASH>..<HASH> 100644
--- a/ipywidgets/widgets/interaction.py
+++ b/ipywidgets/widgets/interaction.py
@@ -507,3 +507,9 @@ class fixed(HasTraits):
description = Unicode('', help="Any Python object")
def __init__(self, valu... | PR #<I> broke the fixed() functionality of @interact. This fixes it. | py |
diff --git a/aomi/helpers.py b/aomi/helpers.py
index <HASH>..<HASH> 100644
--- a/aomi/helpers.py
+++ b/aomi/helpers.py
@@ -2,9 +2,17 @@
from __future__ import print_function
import sys
import os
-from pkg_resources import resource_string
+from pkg_resources import resource_string, resource_filename
-VERSION = reso... | look for dev or packaged version file | py |
diff --git a/src/threadPool.py b/src/threadPool.py
index <HASH>..<HASH> 100644
--- a/src/threadPool.py
+++ b/src/threadPool.py
@@ -40,7 +40,7 @@ class ThreadPool(Module):
self.pool.expectedFT -= 1
self.pool.workers.remove(self)
self.pool.cond.release()
- self.l.debug("Bye")
+ self.l... | threadPool: add name to "Bye" | py |
diff --git a/neutron/plugins/cisco/l2device_plugin_base.py b/neutron/plugins/cisco/l2device_plugin_base.py
index <HASH>..<HASH> 100644
--- a/neutron/plugins/cisco/l2device_plugin_base.py
+++ b/neutron/plugins/cisco/l2device_plugin_base.py
@@ -19,7 +19,10 @@
from abc import ABCMeta, abstractmethod
import inspect
+im... | Apply six for metaclass __metaclass__ cannot be used in python3. six be used in general for python 3 compatibility. Change-Id: Ib0d<I>b<I>dc<I>c<I>d3b<I> Closes-Bug: #<I> | py |
diff --git a/salt/utils/yamlloader.py b/salt/utils/yamlloader.py
index <HASH>..<HASH> 100644
--- a/salt/utils/yamlloader.py
+++ b/salt/utils/yamlloader.py
@@ -96,4 +96,4 @@ class SaltYamlSafeLoader(yaml.SafeLoader):
# an empty string. Change it to '0'.
if node.value == '':
... | Call `super()` instead. Why wasn't super being called? | py |
diff --git a/udata/assets.py b/udata/assets.py
index <HASH>..<HASH> 100644
--- a/udata/assets.py
+++ b/udata/assets.py
@@ -26,6 +26,8 @@ def has_manifest(app, filename='manifest.json'):
def register_manifest(app, filename='manifest.json'):
'''Register an assets json manifest'''
+ if current_app.config.get('T... | Prevent assets manifests reading during tests | py |
diff --git a/virtue/reporters.py b/virtue/reporters.py
index <HASH>..<HASH> 100644
--- a/virtue/reporters.py
+++ b/virtue/reporters.py
@@ -20,8 +20,10 @@ class ComponentizedReporter(object):
def startTestRun(self):
self._start_time = time()
+ self.recorder.startTestRun()
def stopTestRun(se... | Call some more methods on the recorder. | py |
diff --git a/tests/services/test_configadmin.py b/tests/services/test_configadmin.py
index <HASH>..<HASH> 100644
--- a/tests/services/test_configadmin.py
+++ b/tests/services/test_configadmin.py
@@ -576,9 +576,6 @@ class FileInstallTest(unittest.TestCase):
"""
Tests a whole file life cycle
""... | Removed logging configuration from configadmin tests | py |
diff --git a/firefox/src/py/extensionconnection.py b/firefox/src/py/extensionconnection.py
index <HASH>..<HASH> 100644
--- a/firefox/src/py/extensionconnection.py
+++ b/firefox/src/py/extensionconnection.py
@@ -44,8 +44,7 @@ class ExtensionConnection(object):
"context": self.conte... | JiayaoYu:Fixed a problem with executing large body of javascript in firefox driver python binding r<I> | py |
diff --git a/sanic/request.py b/sanic/request.py
index <HASH>..<HASH> 100644
--- a/sanic/request.py
+++ b/sanic/request.py
@@ -56,7 +56,7 @@ class Request(dict):
# Init but do not inhale
self.body = None
- self.parsed_json = ...
+ self.parsed_json = None
self.parsed_form = Non... | Change Ellipsis to None for consistency | py |
diff --git a/skyfield/positionlib.py b/skyfield/positionlib.py
index <HASH>..<HASH> 100644
--- a/skyfield/positionlib.py
+++ b/skyfield/positionlib.py
@@ -70,8 +70,15 @@ class ICRF(object):
return ICRF(p, v, self.t)
def __getitem__(self, i):
- # TODO: grab other data too
- return type(self... | Slice velocity when a position is indexed Fixes #<I>. | py |
diff --git a/src/sos/sos_task.py b/src/sos/sos_task.py
index <HASH>..<HASH> 100644
--- a/src/sos/sos_task.py
+++ b/src/sos/sos_task.py
@@ -402,6 +402,11 @@ del sos_handle_parameter_
env.logger.info('{} ``skipped``'.format(task_id))
return collect_task_result(task_id, sigil, sos_dict)
+ # if we ar... | Reset task date when it is re-executed. #<I> | py |
diff --git a/pyedflib/edfwriter.py b/pyedflib/edfwriter.py
index <HASH>..<HASH> 100644
--- a/pyedflib/edfwriter.py
+++ b/pyedflib/edfwriter.py
@@ -690,7 +690,7 @@ class EdfWriter(object):
"""
- if (len(data_list) != len(self.channels)):
+ if (len(data_list) != len(self.channels)) or (len(data... | added additional check for non-empty data in edfwriter to present unknonw OS error | py |
diff --git a/ella/photos/models.py b/ella/photos/models.py
index <HASH>..<HASH> 100644
--- a/ella/photos/models.py
+++ b/ella/photos/models.py
@@ -264,20 +264,20 @@ class FormatedPhoto(models.Model):
def url(self):
"Returns url of the photo file."
if not PHOTOS_DO_URL_CHECK:
- return s... | Fixed FormatedPhoto.url property. | py |
diff --git a/dvc/fs/base.py b/dvc/fs/base.py
index <HASH>..<HASH> 100644
--- a/dvc/fs/base.py
+++ b/dvc/fs/base.py
@@ -316,9 +316,9 @@ class FileSystem:
from_file: Union[AnyFSPath, IO],
to_info: AnyFSPath,
callback: FsspecCallback = DEFAULT_CALLBACK,
+ size: int = None,
**kwar... | fs.put_file: don't require size to be passed | py |
diff --git a/rest_client/async.py b/rest_client/async.py
index <HASH>..<HASH> 100644
--- a/rest_client/async.py
+++ b/rest_client/async.py
@@ -132,7 +132,7 @@ class RESTClient(object):
else:
response.fail = True
- if e.response:
+ if fail and e.respo... | Do not decode body 2 times, if error with JSON body | py |
diff --git a/src/edeposit/amqp/aleph/convertors.py b/src/edeposit/amqp/aleph/convertors.py
index <HASH>..<HASH> 100755
--- a/src/edeposit/amqp/aleph/convertors.py
+++ b/src/edeposit/amqp/aleph/convertors.py
@@ -8,7 +8,7 @@ import json
from marcxml import MARCXMLRecord
-import __init__ as datastructs
+from __init__... | Added from __init__ import.. This is important, because otherwise importing from submodules fails. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.