diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/src/flags.py b/src/flags.py
index <HASH>..<HASH> 100644
--- a/src/flags.py
+++ b/src/flags.py
@@ -381,6 +381,12 @@ class FlagsArithmeticMixin:
return False
return (item.__bits & self.__bits) == item.__bits
+ def is_disjoint(self, *flags_instances):
+ for flags in flags_ins... | added FlagsArithmeticMixin.isdisjoint() | py |
diff --git a/chalice/app.py b/chalice/app.py
index <HASH>..<HASH> 100644
--- a/chalice/app.py
+++ b/chalice/app.py
@@ -26,6 +26,12 @@ def get_chalice_app(flask_app):
uri_params = app.current_request.uri_params or {}
path = app.current_request.context["resourcePath"].format(**uri_params)
req_b... | Log some data about each query so we can trace the execution of requests. (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ license: GNU-GPL2
from setuptools import setup
setup(name='consoleprinter',
- version='23',
+ version='24',
description='Console printer with linenumbers, stacktraces, logging, conversions and... | pip Tuesday <I> March <I> (week:<I> day:<I>), <I>:<I>:<I> | py |
diff --git a/hypermap/aggregator/models.py b/hypermap/aggregator/models.py
index <HASH>..<HASH> 100644
--- a/hypermap/aggregator/models.py
+++ b/hypermap/aggregator/models.py
@@ -224,7 +224,7 @@ class Layer(Resource):
else:
raise NotImplementedError
name = re.sub('[^\w\-_\. ]'... | Changes to write to the temporary directory due to write permissions missing | py |
diff --git a/openquake/db/models.py b/openquake/db/models.py
index <HASH>..<HASH> 100644
--- a/openquake/db/models.py
+++ b/openquake/db/models.py
@@ -842,10 +842,11 @@ class HazardCalculation(djm.Model):
In this case, it obvious that such a thing should be done carefully
and with much discret... | db/models: Added a missing import to make `site_collection` creation/caching work. | py |
diff --git a/tests/managers/object_storage_tests.py b/tests/managers/object_storage_tests.py
index <HASH>..<HASH> 100644
--- a/tests/managers/object_storage_tests.py
+++ b/tests/managers/object_storage_tests.py
@@ -16,8 +16,8 @@ class ObjectStorageTests(testing.TestCase):
def test_list_accounts(self):
a... | Fix small style issue w/ assertEqual vs assertEquals | py |
diff --git a/salt/modules/iptables.py b/salt/modules/iptables.py
index <HASH>..<HASH> 100644
--- a/salt/modules/iptables.py
+++ b/salt/modules/iptables.py
@@ -166,13 +166,8 @@ def build_rule(table=None, chain=None, command=None, position='', full=None, fam
if not '-m multiport' in rule:
rule += '-... | Cleanup some code in the iptables module. Inside build_rule for the dports & sports code, if dorts & sports are a list then use a join instead of the for loop to build the list of ports. | py |
diff --git a/statsdmetrics/__init__.py b/statsdmetrics/__init__.py
index <HASH>..<HASH> 100644
--- a/statsdmetrics/__init__.py
+++ b/statsdmetrics/__init__.py
@@ -13,7 +13,7 @@ from .metrics import (Counter, Timer, Gauge,
parse_metric_from_request,
)
-__version__ = '0.2.0'
... | Version <I> Increase version for releasing fixed packages on pypi | py |
diff --git a/test/test_mock_solver_loading.py b/test/test_mock_solver_loading.py
index <HASH>..<HASH> 100644
--- a/test/test_mock_solver_loading.py
+++ b/test/test_mock_solver_loading.py
@@ -7,7 +7,6 @@ import unittest
import requests_mock
import dwave_micro_client
-from dwave_micro_client import InvalidAPIResponse... | Fix assert raises unit test in py2 The `InvalidAPIResponseError` exception equlity testing is not properly done in Python2's `unittest.assertRaises` context manager if the exception class is not properly imported. (Is this a bug in py2's unittest pkg?) | py |
diff --git a/pyls/plugins/flake8_lint.py b/pyls/plugins/flake8_lint.py
index <HASH>..<HASH> 100644
--- a/pyls/plugins/flake8_lint.py
+++ b/pyls/plugins/flake8_lint.py
@@ -118,10 +118,16 @@ def parse_stdout(document, stdout):
diagnostics = []
lines = stdout.splitlines()
for raw_line in lines:
- par... | Fix an issue when re.match returns None (#<I>) | py |
diff --git a/src/cosmic_ray/version.py b/src/cosmic_ray/version.py
index <HASH>..<HASH> 100644
--- a/src/cosmic_ray/version.py
+++ b/src/cosmic_ray/version.py
@@ -1,4 +1,4 @@
"""Cosmic Ray version info."""
-__version_info__ = (5, 2, 2)
+__version_info__ = (5, 3, 0)
__version__ = '.'.join(map(str, __version_info__)) | Bumped version to <I>. | py |
diff --git a/script/lib/config.py b/script/lib/config.py
index <HASH>..<HASH> 100644
--- a/script/lib/config.py
+++ b/script/lib/config.py
@@ -7,7 +7,7 @@ import sys
BASE_URL = 'http://gh-contractor-zcbenz.s3.amazonaws.com/libchromiumcontent'
-LIBCHROMIUMCONTENT_COMMIT = 'fa886209473d40eafda4e8263a79b5cf83eef95e'
... | Update libchromiumcontent for race condition fix | py |
diff --git a/examples/cli.py b/examples/cli.py
index <HASH>..<HASH> 100644
--- a/examples/cli.py
+++ b/examples/cli.py
@@ -372,9 +372,9 @@ class CommandLineInterface(object):
}
if self.options.technology:
rdwr_options["targets"] = {
- "A": [nfc.clf.Remot... | technology options must be set as BRTY strings | py |
diff --git a/spacy/lang/ru/lemmatizer.py b/spacy/lang/ru/lemmatizer.py
index <HASH>..<HASH> 100644
--- a/spacy/lang/ru/lemmatizer.py
+++ b/spacy/lang/ru/lemmatizer.py
@@ -90,12 +90,12 @@ class RussianLemmatizer(Lemmatizer):
return [string.lower()]
return list(set([analysis.normal_form for analysis... | Rename and update ru pymorphy2 lookup lemmatize * To allow default lookup lemmatization with a blank Russian model, rename pymorphy2 lookup mode to `pymorphy2_lookup` * Bug fix: update pymorphy2 lookup lemmatize to return list rather than string | py |
diff --git a/parsimonious/tests/test_nodes.py b/parsimonious/tests/test_nodes.py
index <HASH>..<HASH> 100644
--- a/parsimonious/tests/test_nodes.py
+++ b/parsimonious/tests/test_nodes.py
@@ -80,11 +80,11 @@ def test_repr():
n = Node(Literal(boogie), s, 0, 3, children=[
Node(Literal(' '), s, 3, 4), Nod... | Fix failing repr test in python 2. | py |
diff --git a/rest_framework_swagger/docgenerator.py b/rest_framework_swagger/docgenerator.py
index <HASH>..<HASH> 100644
--- a/rest_framework_swagger/docgenerator.py
+++ b/rest_framework_swagger/docgenerator.py
@@ -113,6 +113,11 @@ class DocumentationGenerator(object):
docstring_serializer = doc_parser.get_ser... | switch off serializer if custom response usage detected | py |
diff --git a/disqus_static/disqus_static.py b/disqus_static/disqus_static.py
index <HASH>..<HASH> 100644
--- a/disqus_static/disqus_static.py
+++ b/disqus_static/disqus_static.py
@@ -10,9 +10,9 @@ from disqusapi import DisqusAPI, Paginator
from pelican import signals
def initialized(pelican):
- from pelican.sett... | Update disqus_static.py There is no '_' prefix for DEFAULT_CONFIG | py |
diff --git a/simple_history/models.py b/simple_history/models.py
index <HASH>..<HASH> 100644
--- a/simple_history/models.py
+++ b/simple_history/models.py
@@ -206,17 +206,15 @@ class HistoricalRecords(object):
if not created and hasattr(instance, 'skip_history_when_saving'):
return
if not... | Reverted 'create_historical_recoard' as a static method | py |
diff --git a/salt/cloud/__init__.py b/salt/cloud/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/cloud/__init__.py
+++ b/salt/cloud/__init__.py
@@ -277,6 +277,7 @@ class CloudClient(object):
Query all instance information
'''
mapper = salt.cloud.Map(self._opts_defaults())
+ self.opt... | Use proper query method from CloudClient | py |
diff --git a/gwpy/tests/test_array.py b/gwpy/tests/test_array.py
index <HASH>..<HASH> 100644
--- a/gwpy/tests/test_array.py
+++ b/gwpy/tests/test_array.py
@@ -399,6 +399,19 @@ class SeriesTestCase(CommonTests, unittest.TestCase):
self.assertEqual(ts1.value_at(1500 * units.milliHertz),
... | tests: added read/write ASCII test | py |
diff --git a/tests/config_test.py b/tests/config_test.py
index <HASH>..<HASH> 100644
--- a/tests/config_test.py
+++ b/tests/config_test.py
@@ -104,19 +104,25 @@ class TestConfigurationNamespace(object):
def test_get_config_dict(self):
self.namespace['one.two.three.four'] = 5
- self.namespace['a.b... | Add overlapping keys to config_test.py::TestConfigurationNamespace::test_get_config_dict to ensure non-clobbery | py |
diff --git a/shellish/session.py b/shellish/session.py
index <HASH>..<HASH> 100644
--- a/shellish/session.py
+++ b/shellish/session.py
@@ -33,7 +33,7 @@ class Session(eventing.Eventer):
completer_delim_includes = frozenset()
completer_delim_excludes = frozenset('-+@:/~*')
pad_completion = True
- allow... | Allow paging to be globally turned off via PAGER= | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,8 @@ from setuptools import setup
# import manually __version__ variable
exec(open('ripe/atlas/cousteau/version.py').read())
-install_requires = ["python-dateutil", "socketIO-client>=0.6.5"]
+install_requires = [
+... | Added requests==<I> requirement while we wait on socketio-client to do the same | py |
diff --git a/src/you_get/extractors/baidu.py b/src/you_get/extractors/baidu.py
index <HASH>..<HASH> 100644
--- a/src/you_get/extractors/baidu.py
+++ b/src/you_get/extractors/baidu.py
@@ -129,6 +129,15 @@ def baidu_download(url, output_dir='.', stream_type=None, merge=True, info_only=
html = get_html(url)
... | [baidu] squanch this | py |
diff --git a/dark/aa.py b/dark/aa.py
index <HASH>..<HASH> 100644
--- a/dark/aa.py
+++ b/dark/aa.py
@@ -1,4 +1,3 @@
-
from dark.utils import countPrint
try:
from itertools import zip_longest | Cleaned up dark/aa.py | py |
diff --git a/psqlextra/partitioning/current_time_strategy.py b/psqlextra/partitioning/current_time_strategy.py
index <HASH>..<HASH> 100644
--- a/psqlextra/partitioning/current_time_strategy.py
+++ b/psqlextra/partitioning/current_time_strategy.py
@@ -1,4 +1,4 @@
-from datetime import datetime
+from datetime import date... | Use UTC datetime to avoid issues with daylight savings | py |
diff --git a/cpuinfo/cpuinfo.py b/cpuinfo/cpuinfo.py
index <HASH>..<HASH> 100644
--- a/cpuinfo/cpuinfo.py
+++ b/cpuinfo/cpuinfo.py
@@ -194,9 +194,12 @@ def obj_to_b64(thing):
return d
def b64_to_obj(thing):
- a = base64.b64decode(thing)
- b = pickle.loads(a)
- return b
+ try:
+ a = base64.b64decode(thing)
+ b = ... | Added protection for invalid base<I> output from CPUID. | py |
diff --git a/example/article/tests.py b/example/article/tests.py
index <HASH>..<HASH> 100644
--- a/example/article/tests.py
+++ b/example/article/tests.py
@@ -195,7 +195,7 @@ class AdminArticleTestCase(TestMixin, TestCase):
reverse('admin:article_article_delete_translation', args=[self.art_id, 'en']),
... | Fix tests for admin redirects, now that the view redirects back to edit | py |
diff --git a/master/buildbot/test/unit/test_changes_p4poller.py b/master/buildbot/test/unit/test_changes_p4poller.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/test/unit/test_changes_p4poller.py
+++ b/master/buildbot/test/unit/test_changes_p4poller.py
@@ -336,7 +336,7 @@ class TestP4Poller(changesource.ChangeSou... | Fix p4poller's tickets getting unittest | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -15,7 +15,10 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>
-from distutils.core import setup
+try:
+ from setuptools ... | Ditch distutils in favor of setuptools | py |
diff --git a/rosapi/connections.py b/rosapi/connections.py
index <HASH>..<HASH> 100644
--- a/rosapi/connections.py
+++ b/rosapi/connections.py
@@ -72,7 +72,7 @@ class ReaderWriter:
ret_str += ret
to_read -= len( ret )
except socket.timeout:
- raise RwError( 'socket ... | on timeout RwTimeout is raised | py |
diff --git a/src/infi/projector/plugins/builtins/repository/__init__.py b/src/infi/projector/plugins/builtins/repository/__init__.py
index <HASH>..<HASH> 100644
--- a/src/infi/projector/plugins/builtins/repository/__init__.py
+++ b/src/infi/projector/plugins/builtins/repository/__init__.py
@@ -65,7 +65,7 @@ class Repos... | TRIVIAL don't create directory if repository clone failed | py |
diff --git a/src/foremast/awslambda/s3_event/destroy_s3_event/destroy_s3_event.py b/src/foremast/awslambda/s3_event/destroy_s3_event/destroy_s3_event.py
index <HASH>..<HASH> 100644
--- a/src/foremast/awslambda/s3_event/destroy_s3_event/destroy_s3_event.py
+++ b/src/foremast/awslambda/s3_event/destroy_s3_event/destroy_s... | removed hard coded bucket naming, added a generated for s3_app_bucket | py |
diff --git a/tools/run_tests/run_tests.py b/tools/run_tests/run_tests.py
index <HASH>..<HASH> 100755
--- a/tools/run_tests/run_tests.py
+++ b/tools/run_tests/run_tests.py
@@ -346,6 +346,7 @@ def runs_per_test_type(arg_str):
try:
n = int(arg_str)
if n <= 0: raise ValueError
+ return n
... | Fix bug with finite runs per test | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -74,7 +74,7 @@ setup(
include_package_data=True,
install_requires=['sovrin-common-dev==0.2.66', 'anoncreds-dev==0.3.8'],
setup_requires=['pytest-runner'],
- tests_require=['pytest', 'sovrin-node-dev==0.3.110'... | up node version to <I> | py |
diff --git a/formats/folia.py b/formats/folia.py
index <HASH>..<HASH> 100644
--- a/formats/folia.py
+++ b/formats/folia.py
@@ -766,13 +766,23 @@ class AbstractElement(object):
def __str__(self):
return self.text()
- def copy(self, newdoc=None):
+ def copy(self, newdoc=None, idsuffix=""):
... | added addidsuffix() method and added idsuffix parameter to copy(). Copy can now automatically add a suffix to IDs for the copy, preventing conflicts it the copy is reinserted into the tree later. | py |
diff --git a/satpy/readers/viirs_sdr.py b/satpy/readers/viirs_sdr.py
index <HASH>..<HASH> 100644
--- a/satpy/readers/viirs_sdr.py
+++ b/satpy/readers/viirs_sdr.py
@@ -272,6 +272,8 @@ class VIIRSSDRFileHandler(HDF5FileHandler):
"end_orbit": self.end_orbit_number,
})
i.update(dataset_id.to_... | Remove coordinates from viirs sdr reader until xarray bug is fixed | py |
diff --git a/tests/test_core.py b/tests/test_core.py
index <HASH>..<HASH> 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -6,7 +6,7 @@ import signal
from functools import wraps
from nose import with_setup
-from nose.tools import nottest, raises
+from nose.tools import nottest, raises, assert_items_equal... | Use assert_items_equal to prevent dict ordering flapping | py |
diff --git a/src/rituals/acts/documentation.py b/src/rituals/acts/documentation.py
index <HASH>..<HASH> 100644
--- a/src/rituals/acts/documentation.py
+++ b/src/rituals/acts/documentation.py
@@ -174,7 +174,7 @@ def sphinx(ctx, browse=False, clean=False, watchdog=False, kill=False, status=Fa
# Build docs
notif... | do not start nohup process bound to a pty | py |
diff --git a/pyemma/coordinates/data/featurization/featurizer.py b/pyemma/coordinates/data/featurization/featurizer.py
index <HASH>..<HASH> 100644
--- a/pyemma/coordinates/data/featurization/featurizer.py
+++ b/pyemma/coordinates/data/featurization/featurizer.py
@@ -376,7 +376,9 @@ class MDFeaturizer(Loggable):
... | [feat.add_residue_mindist] doc: forced use of PBCs | py |
diff --git a/salt/utils/aws.py b/salt/utils/aws.py
index <HASH>..<HASH> 100644
--- a/salt/utils/aws.py
+++ b/salt/utils/aws.py
@@ -133,7 +133,10 @@ def creds(provider):
ret_credentials = provider['id'], provider['key'], ''
if provider.get('role_arn') is not None:
- ret_credentials = assumed_creds... | salt/utils/aws: fix infinite loop issue and sts location creds may invoke assumed_creds which will invoke creds to get the original credentials. To avoid the infinite loop issue, we need to delete role_arn from provider information when calling assumed_creds. assumed_creds will need to use location=us-east-1 otherwis... | py |
diff --git a/tests/test_mutagenwrapper.py b/tests/test_mutagenwrapper.py
index <HASH>..<HASH> 100644
--- a/tests/test_mutagenwrapper.py
+++ b/tests/test_mutagenwrapper.py
@@ -39,13 +39,13 @@ def cover():
return read('data/cover.jpg')
-@pytest.fixture(params=['m4a'])
+@pytest.fixture(params=['m4a', 'mp3'])
def... | Add mistakenly omitted mp3 files to tests | py |
diff --git a/influxdb/client.py b/influxdb/client.py
index <HASH>..<HASH> 100644
--- a/influxdb/client.py
+++ b/influxdb/client.py
@@ -823,6 +823,11 @@ class InfluxDBClient(object):
data = ('\n'.join(packet) + '\n').encode('utf-8')
self.udp_socket.sendto(data, (self._host, self.udp_port))
+ d... | Add method close to InfluxDBClient class. (#<I>) * Add method close to InfluxDBClient class. This method just closes Session if it's exist. * Add method close to InfluxDBClient class. This method just closes Session if it's exist. | py |
diff --git a/source/rafcon/gui/models/state_machine_manager.py b/source/rafcon/gui/models/state_machine_manager.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/gui/models/state_machine_manager.py
+++ b/source/rafcon/gui/models/state_machine_manager.py
@@ -114,7 +114,6 @@ class StateMachineManagerModel(ModelMT, Obser... | Do not touch selection in StateMachineManager | py |
diff --git a/bettercache/views.py b/bettercache/views.py
index <HASH>..<HASH> 100644
--- a/bettercache/views.py
+++ b/bettercache/views.py
@@ -1,3 +1,5 @@
+import urllib2, time
+
from django.http import HttpResponse
from bettercache.utils import CachingMixin
from bettercache.tasks import GeneratePage
@@ -18,10 +20,1... | [CMSPERF-<I>] slightly better it now proxies | py |
diff --git a/dyndnsc/tests/detector/test_all.py b/dyndnsc/tests/detector/test_all.py
index <HASH>..<HASH> 100644
--- a/dyndnsc/tests/detector/test_all.py
+++ b/dyndnsc/tests/detector/test_all.py
@@ -89,7 +89,7 @@ class TestIndividualDetectors(unittest.TestCase):
# test address family restriction to ipv4:
... | the comma makes the tuple, not the parens | py |
diff --git a/djangodblog/models.py b/djangodblog/models.py
index <HASH>..<HASH> 100644
--- a/djangodblog/models.py
+++ b/djangodblog/models.py
@@ -88,7 +88,7 @@ class ErrorBatch(Model):
@staticmethod
@transaction.commit_on_success
- def handle_exception(sender, request, **kwargs):
+ def handle_excepti... | Optional request object in signal handler | py |
diff --git a/esptool.py b/esptool.py
index <HASH>..<HASH> 100755
--- a/esptool.py
+++ b/esptool.py
@@ -833,6 +833,8 @@ def write_flash(esp, args):
for address, argfile in args.addr_filename:
image = argfile.read()
argfile.seek(0) # rewind in case we need it again
+ if address + len(image)... | Warn when data is larger than flash | py |
diff --git a/GPy/models/GPLVM.py b/GPy/models/GPLVM.py
index <HASH>..<HASH> 100644
--- a/GPy/models/GPLVM.py
+++ b/GPy/models/GPLVM.py
@@ -22,8 +22,9 @@ class GPLVM(GP_regression):
:type init: 'PCA'|'random'
"""
- def __init__(self, Y, Q, init='PCA', **kwargs):
- X = self.initialise_latent(init, Q... | GPLVM accepts an initial value for X (in case you don't want to use the default random/PCA init) | py |
diff --git a/ropetest/testutils.py b/ropetest/testutils.py
index <HASH>..<HASH> 100644
--- a/ropetest/testutils.py
+++ b/ropetest/testutils.py
@@ -33,11 +33,17 @@ def remove_project(project):
def remove_recursively(path):
import time
- if os.name == 'nt':
+ # windows sometimes raises exceptions instead of... | testutils: fix running the test suite on cygwin Thanks to Darren Syzling. | py |
diff --git a/canmatrix/dbc.py b/canmatrix/dbc.py
index <HASH>..<HASH> 100644
--- a/canmatrix/dbc.py
+++ b/canmatrix/dbc.py
@@ -506,7 +506,11 @@ def load(f, **options):
if multiplex == 'M':
multiplex = 'Multiplexor'
else:
- multiplex = int(multipl... | add exception if multiplexed signal could not be decoded should help to find reason of #<I> | py |
diff --git a/openquake/engine/tools/make_html_report.py b/openquake/engine/tools/make_html_report.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/tools/make_html_report.py
+++ b/openquake/engine/tools/make_html_report.py
@@ -152,7 +152,7 @@ WHERE a.lt_model_id=b.id AND b.hazard_calculation_id=%s GROUP BY b.id) AS... | Change the model summary ordering in the HTML report Former-commit-id: <I>eb<I>fe4c8a3aff<I>cb<I>cb2a6a4ff<I> | py |
diff --git a/crashreporter/crashreporter.py b/crashreporter/crashreporter.py
index <HASH>..<HASH> 100644
--- a/crashreporter/crashreporter.py
+++ b/crashreporter/crashreporter.py
@@ -247,14 +247,15 @@ class CrashReporter(object):
self.stop_watcher()
return False
- tmp = 'ftp_report'
-... | fixed issue with ftp upload due to extensions. delete the temp file created with uploading via FTP | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -32,7 +32,7 @@ setup(
description='Specter is a spec-based testing library to help facilitate BDD-testing in Python.',
long_description=long_desc,
classifiers=(
- 'Development Status :: 3 - Alpha',
+ ... | Moving the specter package to a Beta classification | py |
diff --git a/plans/models.py b/plans/models.py
index <HASH>..<HASH> 100644
--- a/plans/models.py
+++ b/plans/models.py
@@ -464,11 +464,11 @@ class Invoice(models.Model):
invoice_counter_reset = getattr(settings, 'INVOICE_COUNTER_RESET', Invoice.NUMBERING.MONTHLY)
if invoice_counter_reset == ... | Very important bug fix. Invoice counter is working INDEPENDENTLY for each invoice type. So each type of invoice is numbered correctly. | py |
diff --git a/PyKCS11/__init__.py b/PyKCS11/__init__.py
index <HASH>..<HASH> 100644
--- a/PyKCS11/__init__.py
+++ b/PyKCS11/__init__.py
@@ -693,7 +693,7 @@ class Session(object):
if not isinstance(session, LowLevel.CK_SESSION_HANDLE):
raise TypeError("session must be a CK_SESSION_HANDLE")
- ... | Session(): expand an acronym in a comment "Garbage Collection" is more explicit than "GC". | py |
diff --git a/kappa/event_source.py b/kappa/event_source.py
index <HASH>..<HASH> 100644
--- a/kappa/event_source.py
+++ b/kappa/event_source.py
@@ -54,7 +54,7 @@ class KinesisEventSource(EventSource):
try:
response = self._lambda.add_event_source(
FunctionName=function.name,
- ... | Fixing a few things landscape.io found. | 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
@@ -28,6 +28,10 @@ def _kernel():
else:
grains['kernelrelease'] = subprocess.Popen(['uname', '-r'],
stdout=subprocess.PIPE).communicate()[0].strip()
+ if n... | Add a fallback to the kernel grain | py |
diff --git a/tests/test_ind_dma.py b/tests/test_ind_dma.py
index <HASH>..<HASH> 100644
--- a/tests/test_ind_dma.py
+++ b/tests/test_ind_dma.py
@@ -28,11 +28,11 @@ import backtrader.indicators as btind
chkdatas = 1
chkvals = [
- ['4124.449036', '3647.765377', '3538.928386']
+ ['4121.903804', '3677.634675', '35... | change minperiod because default for indicator has been left at <I> | py |
diff --git a/leaflet_storage/views.py b/leaflet_storage/views.py
index <HASH>..<HASH> 100644
--- a/leaflet_storage/views.py
+++ b/leaflet_storage/views.py
@@ -81,6 +81,7 @@ class FormLessEditMixin(object):
kwargs['error_class'] = FlatErrorList
return form_class(**kwargs)
+
class MapDetailMixin(obje... | Make possible to override some URLs | py |
diff --git a/salt/cli/__init__.py b/salt/cli/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/cli/__init__.py
+++ b/salt/cli/__init__.py
@@ -46,7 +46,9 @@ class SaltCMD(parsers.SaltCMDOptionParser):
if self.options.batch:
batch = salt.cli.batch.Batch(self.config)
- batch.run()
+ ... | Fix the batch mode not printing the output | py |
diff --git a/flask_mongo_profiler/contrib/werkzeug/werkzeug_middleware.py b/flask_mongo_profiler/contrib/werkzeug/werkzeug_middleware.py
index <HASH>..<HASH> 100644
--- a/flask_mongo_profiler/contrib/werkzeug/werkzeug_middleware.py
+++ b/flask_mongo_profiler/contrib/werkzeug/werkzeug_middleware.py
@@ -82,7 +82,7 @@ cla... | :wheelchair: Another python 2/3 compatibility fix | py |
diff --git a/ceph_deploy/tests/test_cli.py b/ceph_deploy/tests/test_cli.py
index <HASH>..<HASH> 100644
--- a/ceph_deploy/tests/test_cli.py
+++ b/ceph_deploy/tests/test_cli.py
@@ -13,15 +13,3 @@ def test_help(tmpdir, cli):
assert 'usage: ceph-deploy' in result
assert 'optional arguments:' in result
... | [RM-<I>] Remove test for bad subcommand from test_cli Now covered in parser/test_main.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,7 @@ if sys.argv[-1] == 'publish':
settings.update(
name='nameparts',
- version='0.5.7',
+ version='0.5.8',
description='Takes a full human name and splits it into individual parts',
long_description=re... | Updated to version <I> | py |
diff --git a/build/build.py b/build/build.py
index <HASH>..<HASH> 100755
--- a/build/build.py
+++ b/build/build.py
@@ -163,6 +163,7 @@ build --python_path="{python_bin_path}"
build --action_env TF_NEED_CUDA="{tf_need_cuda}"
build --action_env CUDA_TOOLKIT_PATH="{cuda_toolkit_path}"
build --action_env CUDNN_INSTALL_P... | Set --distinct_host_configuration=false in the bazel options. This makes initial builds cheaper (since we don't need to build some files in separate host and target configurations) but may make switching between build configurations more expensive (since we can share less work). The build script should optimize for th... | 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
@@ -559,7 +559,7 @@ class LocalClient(object):
{'stewart': {...}}
'''
if 'expr_form' in kwargs:
- # We need to report salt.util... | Fixing a typo in the comment. | py |
diff --git a/plugins/PluginCertInfo.py b/plugins/PluginCertInfo.py
index <HASH>..<HASH> 100755
--- a/plugins/PluginCertInfo.py
+++ b/plugins/PluginCertInfo.py
@@ -63,10 +63,10 @@ class PluginCertInfo(PluginBase.PluginBase):
"the certificate. CERTINFO should be 'basic' or 'full'.",
dest="certinfo"... | Switch to --ca_file for consistency | py |
diff --git a/clam/clamservice.py b/clam/clamservice.py
index <HASH>..<HASH> 100755
--- a/clam/clamservice.py
+++ b/clam/clamservice.py
@@ -2890,9 +2890,6 @@ def run_wsgi(settings_module):
set_defaults() #host, port
test_dirs()
- if settings.URLPREFIX:
- settings.STANDALONEURLPREFIX = '/' + setting... | reverting <I>a9, causes problems in apache production setup | py |
diff --git a/homura.py b/homura.py
index <HASH>..<HASH> 100644
--- a/homura.py
+++ b/homura.py
@@ -179,14 +179,14 @@ class Homura(object):
self.curl()
except pycurl.error as e:
# transfer closed with n bytes remaining to read
- if e.args[0] == 18:
+ ... | Use pycurl constants instead of magic numbers | py |
diff --git a/lifelines/fitters/weibull_fitter.py b/lifelines/fitters/weibull_fitter.py
index <HASH>..<HASH> 100644
--- a/lifelines/fitters/weibull_fitter.py
+++ b/lifelines/fitters/weibull_fitter.py
@@ -14,7 +14,7 @@ class WeibullFitter(KnownModelParametricUnivariateFitter):
.. math:: S(t) = \exp\left(-\left(\f... | Fix typos in Weibull fitter description. | py |
diff --git a/pyvista/core/filters/poly_data.py b/pyvista/core/filters/poly_data.py
index <HASH>..<HASH> 100644
--- a/pyvista/core/filters/poly_data.py
+++ b/pyvista/core/filters/poly_data.py
@@ -523,10 +523,10 @@ class PolyDataFilters(DataSetFilters):
curv_type : str, optional
Curvature type. One... | Fixed docstring explanation for curvature function (#<I>) | py |
diff --git a/Corrfunc/io.py b/Corrfunc/io.py
index <HASH>..<HASH> 100644
--- a/Corrfunc/io.py
+++ b/Corrfunc/io.py
@@ -11,13 +11,6 @@ from os.path import dirname, abspath, splitext, exists as file_exists,\
join as pjoin
import numpy as np
-try:
- from future.utils import bytes_to_native_str
-except ImportErr... | Moved import from future package into the relevant function | py |
diff --git a/src/test/test_Sun.py b/src/test/test_Sun.py
index <HASH>..<HASH> 100644
--- a/src/test/test_Sun.py
+++ b/src/test/test_Sun.py
@@ -258,7 +258,7 @@ def test_Astral_TimeAtElevation_BadElevation():
d = datetime.date(2016, 1, 4)
with pytest.raises(AstralError):
- dt = a.time_at_elevation_u... | Don't need return value as only capturing exception | py |
diff --git a/tests/test_use.py b/tests/test_use.py
index <HASH>..<HASH> 100644
--- a/tests/test_use.py
+++ b/tests/test_use.py
@@ -163,6 +163,15 @@ class TestSocket(object):
else:
assert self.tcp_service.datagrams == {'udp'}
+ def test_inet(self):
+ assert self.tcp_service.inet == {'tc... | Add tests to check inet and unix attributes | py |
diff --git a/asv/util.py b/asv/util.py
index <HASH>..<HASH> 100644
--- a/asv/util.py
+++ b/asv/util.py
@@ -259,7 +259,7 @@ class ProcessError(subprocess.CalledProcessError):
' '.join(self.args), self.retcode)
-def check_call(args, valid_return_codes=(0,), timeout=60, dots=True,
+def check_call(args... | Bump default command timeouts to <I> min The value is arbitrary, but matches Travis-CI. | py |
diff --git a/scripts/watcher/watcher.py b/scripts/watcher/watcher.py
index <HASH>..<HASH> 100644
--- a/scripts/watcher/watcher.py
+++ b/scripts/watcher/watcher.py
@@ -84,13 +84,14 @@ def resync():
### testing running feed schedule through script
def checkTime():
- minute = strftime("%M", gmtime())
- minute = ... | fixed error that caused crash when feed was set to false | py |
diff --git a/osmnx/settings.py b/osmnx/settings.py
index <HASH>..<HASH> 100644
--- a/osmnx/settings.py
+++ b/osmnx/settings.py
@@ -32,6 +32,14 @@ useful_tags_path = ['bridge', 'tunnel', 'oneway', 'lanes', 'ref', 'name',
'highway', 'maxspeed', 'service', 'access', 'area',
'landu... | added new settings for use in osm-format exporter | py |
diff --git a/src/binwalk/modules/signature.py b/src/binwalk/modules/signature.py
index <HASH>..<HASH> 100644
--- a/src/binwalk/modules/signature.py
+++ b/src/binwalk/modules/signature.py
@@ -123,6 +123,9 @@ class Signature(Module):
if r.jump and (r.jump + r.offset) > r.file.size:
r.valid =... | Added support for the 'location' signature keyword | py |
diff --git a/zinnia/models/entry.py b/zinnia/models/entry.py
index <HASH>..<HASH> 100644
--- a/zinnia/models/entry.py
+++ b/zinnia/models/entry.py
@@ -59,7 +59,7 @@ class EntryAbstractClass(models.Model):
related = models.ManyToManyField('self', verbose_name=_('related entries'),
... | review help_text property for publication_date and slug fields | py |
diff --git a/tests/unit/states/test_win_lgpo.py b/tests/unit/states/test_win_lgpo.py
index <HASH>..<HASH> 100644
--- a/tests/unit/states/test_win_lgpo.py
+++ b/tests/unit/states/test_win_lgpo.py
@@ -7,12 +7,13 @@
from __future__ import absolute_import, unicode_literals, print_function
# Import Salt Testing Libs
-fr... | Skip lgpo unit tests on non windows platforms | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@
from setuptools import setup
-from ripe.atlas.cousteau import __version__
+from ripe.atlas.cousteau.version import __version__
tests_require = [
'nose', | change to the new path of the version | py |
diff --git a/bika/lims/browser/instrument.py b/bika/lims/browser/instrument.py
index <HASH>..<HASH> 100644
--- a/bika/lims/browser/instrument.py
+++ b/bika/lims/browser/instrument.py
@@ -567,6 +567,12 @@ class InstrumentCertificationsView(BikaListingView):
BikaListingView.__init__(self, context, request, **kwa... | Added context action for instrument certifications | py |
diff --git a/sawtooth/config.py b/sawtooth/config.py
index <HASH>..<HASH> 100644
--- a/sawtooth/config.py
+++ b/sawtooth/config.py
@@ -53,8 +53,12 @@ class InvalidSubstitutionKey(Exception):
class Config(dict):
"""Configuration base class."""
- def __init__(self, name="config", cfg={}, source=None, **kwargs)... | Fix dangerous-default-value lint error Thou shalt not initialize parameters using ={}, as all calls to said function will get the same dict. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -224,7 +224,7 @@ package_path(join(SERVER, 'templates'), package_data_dirs)
package_path(join('bokeh', '_templates'), package_data_dirs)
package_data_dirs.append('server/redis.conf')
-suffix_list = ('.csv', '.conf', '.gz',... | Add .png to suffix_list to include browser icons | py |
diff --git a/splinter/driver/webdriver/firefox.py b/splinter/driver/webdriver/firefox.py
index <HASH>..<HASH> 100644
--- a/splinter/driver/webdriver/firefox.py
+++ b/splinter/driver/webdriver/firefox.py
@@ -4,6 +4,7 @@
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE fil... | Fix Firefox headless mode to handle custom firefox_binary option (#<I>) * Firefox headless mode handles custom firefox_binary option, if it is set * Use six to handle Python 2/3 compatibility | py |
diff --git a/pyontutils/docs.py b/pyontutils/docs.py
index <HASH>..<HASH> 100755
--- a/pyontutils/docs.py
+++ b/pyontutils/docs.py
@@ -247,7 +247,7 @@ def renderMarkdown(path, title=None, authors=None, date=None, **kwargs):
org = (re.sub(br'\[\[\.\/(.*(?:py|ttl|graphml|yml|yaml|LICENSE))\]\[(.+)\]\]', br'[[https:/... | docs.py fixed regex to allow empty prefix for LICENSE and others | py |
diff --git a/holoviews/element/chart.py b/holoviews/element/chart.py
index <HASH>..<HASH> 100644
--- a/holoviews/element/chart.py
+++ b/holoviews/element/chart.py
@@ -340,26 +340,9 @@ class Points(Chart):
_min_dims = 2 # Minimum number of columns
- def __init__(self, data, **params):
- ... | Removed unnecessary constructor for Points element | py |
diff --git a/subliminal/core.py b/subliminal/core.py
index <HASH>..<HASH> 100644
--- a/subliminal/core.py
+++ b/subliminal/core.py
@@ -278,7 +278,7 @@ class Subliminal(object):
worker.join()
self.state = PAUSED
if self.taskQueue.empty():
- self.state = STOPPED
+ self... | Fix wrong state in pauseWorkers | py |
diff --git a/rash/watchrecord.py b/rash/watchrecord.py
index <HASH>..<HASH> 100644
--- a/rash/watchrecord.py
+++ b/rash/watchrecord.py
@@ -36,10 +36,14 @@ def watch_record(indexer):
event_handler = RecordHandler(indexer)
observer = Observer()
observer.schedule(event_handler, path=indexer.record_path, rec... | Add debugging logs to watchrecord.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -18,8 +18,8 @@ setup(name='django-contact-form',
'Environment :: Web Environment',
'Framework :: Django',
'Framework :: Django :: 1.8',
- 'Framework... | Indicate Django support in setup.py. | py |
diff --git a/MAVProxy/modules/lib/live_graph.py b/MAVProxy/modules/lib/live_graph.py
index <HASH>..<HASH> 100755
--- a/MAVProxy/modules/lib/live_graph.py
+++ b/MAVProxy/modules/lib/live_graph.py
@@ -23,7 +23,7 @@ class LiveGraph():
title='MAVProxy: LiveGraph',
timespan=20.0,
... | live_graph: 'dark green' is no longer a valid colour in matplotlib | py |
diff --git a/python/phonenumbers/phonenumberutil.py b/python/phonenumbers/phonenumberutil.py
index <HASH>..<HASH> 100644
--- a/python/phonenumbers/phonenumberutil.py
+++ b/python/phonenumbers/phonenumberutil.py
@@ -862,7 +862,10 @@ def format_number_for_mobile_dialing(numobj, region_calling_from, with_formattin
... | Don't modify PhoneNumber object passed into method | py |
diff --git a/dispatch/modules/content/models.py b/dispatch/modules/content/models.py
index <HASH>..<HASH> 100644
--- a/dispatch/modules/content/models.py
+++ b/dispatch/modules/content/models.py
@@ -68,9 +68,6 @@ class Publishable(Model):
featured_image = ForeignKey('ImageAttachment', related_name='%(class)s_fea... | Remove images and videos fields from Publishable model | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,7 @@ from distutils.core import setup
setup(
name = 'Trolly',
- version = '1.2.2',
+ version = '1.0.0',
author = 'plish',
author_email = 'plish.development@gmail.com',
... | Bump major version: backward-incompatible changes With this I'm also proposing to use semver.org The version number bump went into the previous commit, but I forgot to zero the minor.patch numbers. | py |
diff --git a/tests/test_stemmer.py b/tests/test_stemmer.py
index <HASH>..<HASH> 100644
--- a/tests/test_stemmer.py
+++ b/tests/test_stemmer.py
@@ -726,6 +726,11 @@ class CaumannsTestCases(unittest.TestCase):
self.assertEqual(caumanns('Mauer'), 'mau')
self.assertEqual(caumanns('Störsender'), 'stor')
... | added Caumanns stemmer tests to achieve full branch coverage | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,6 +7,7 @@ import os
import platform
import shutil
import subprocess
+import sys
import tempfile
from setuptools import Extension, setup
@@ -23,7 +24,9 @@ else:
# --------------------- Initialization ----------------... | Test if setup running in windows. | py |
diff --git a/nosedjango/nosedjango.py b/nosedjango/nosedjango.py
index <HASH>..<HASH> 100644
--- a/nosedjango/nosedjango.py
+++ b/nosedjango/nosedjango.py
@@ -320,10 +320,6 @@ class NoseDjango(Plugin):
test, settings)
if self._should_rebuild_schema(test):
- for connection in connectio... | refs #<I>: No longer destroy the test DB when rebuilding schmea. | py |
diff --git a/src/rasterstats/point.py b/src/rasterstats/point.py
index <HASH>..<HASH> 100644
--- a/src/rasterstats/point.py
+++ b/src/rasterstats/point.py
@@ -1,7 +1,7 @@
from __future__ import absolute_import
from __future__ import division
from shapely.geometry import shape
-from shapely import wkt
+from shapely.o... | drop depreciated to_wkt using the built in shapely transform. not a hack anymore. closes #<I> | py |
diff --git a/acceptancetests/assess_storage.py b/acceptancetests/assess_storage.py
index <HASH>..<HASH> 100755
--- a/acceptancetests/assess_storage.py
+++ b/acceptancetests/assess_storage.py
@@ -181,7 +181,7 @@ def storage_pool_list(client):
def create_storage_charm(charm_dir, name, summary, storage):
"""Manual... | Add bionic support for dummy-storage-fs charm because we still need to test bionic in <I>; | py |
diff --git a/grimoire_elk/ocean/remo.py b/grimoire_elk/ocean/remo.py
index <HASH>..<HASH> 100644
--- a/grimoire_elk/ocean/remo.py
+++ b/grimoire_elk/ocean/remo.py
@@ -41,20 +41,20 @@ class Mapping(BaseMapping):
if es_major != '2':
mapping = '''
- {
- "d... | [ocean] Fix ES <I>.x mappings for Remo ocean backend This patch fixes the mappings for Remo, which now work also with ES <I>.x | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.