diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/vent/menus/ntap.py b/vent/menus/ntap.py
index <HASH>..<HASH> 100644
--- a/vent/menus/ntap.py
+++ b/vent/menus/ntap.py
@@ -212,7 +212,8 @@ class ActionNTap(npyscreen.ActionForm):
# format the data into something ncontrol likes
else:
- payload = {'id': list(x['id'] for x in sel... | fixed bug where operations were performed on all items rather than user selected | py |
diff --git a/tests/test_customers.py b/tests/test_customers.py
index <HASH>..<HASH> 100644
--- a/tests/test_customers.py
+++ b/tests/test_customers.py
@@ -48,20 +48,23 @@ def test_customers_all(client, response):
response.get('https://api.mollie.com/v2/customers', 'customer_multiple')
customers = client.cus... | Make test_customers_all() the same as all similar tests | py |
diff --git a/machinist/_fsm.py b/machinist/_fsm.py
index <HASH>..<HASH> 100644
--- a/machinist/_fsm.py
+++ b/machinist/_fsm.py
@@ -645,8 +645,9 @@ class _FiniteStateInterpreter(object):
given rich input and deliver the resulting outputs to the wrapped
L{IOutputExecutor}.
- @param input: An in... | Update the _FiniteStateInterpreter's receive docstring | py |
diff --git a/librosa/feature/spectral.py b/librosa/feature/spectral.py
index <HASH>..<HASH> 100644
--- a/librosa/feature/spectral.py
+++ b/librosa/feature/spectral.py
@@ -447,9 +447,16 @@ def spectral_rolloff(y=None, sr=22050, S=None, n_fft=2048, hop_length=512,
From time-series input
>>> y, sr = librosa.lo... | Add approximate minimum frequency example [ci skip] | py |
diff --git a/example_py/list_network_interfaces.py b/example_py/list_network_interfaces.py
index <HASH>..<HASH> 100755
--- a/example_py/list_network_interfaces.py
+++ b/example_py/list_network_interfaces.py
@@ -8,8 +8,8 @@ Requires:
pip install pyroute2 docopt
Usage:
- list_network_interfaces print
- list_net... | Fixed docstring for docopt. Forgot .py. | py |
diff --git a/nested_inline/admin.py b/nested_inline/admin.py
index <HASH>..<HASH> 100644
--- a/nested_inline/admin.py
+++ b/nested_inline/admin.py
@@ -101,9 +101,9 @@ class NestedModelAdmin(admin.ModelAdmin):
instance = form.instance
else:
instance = None
- ... | Update admin.py I got into problem with readonly_fields when I got None even for form where I tried to modify an instance. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -131,8 +131,8 @@ def get_build_args():
_LOGGER.warn('pkg-config failed to find tesseract/lept libraries: {}'.format(e))
build_args = get_tesseract_version()
- if build_args['cython_compile_time_env']... | Fix compilation with tesseract <I> It needs -std=c<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@ from setuptools import find_packages, setup
setup(
name='hpfeeds3',
- version='0.9.2.dev0',
+ version='0.9.2',
description='Python implementation of the honeypot feeds broker',
author='John... | Preparing release <I> | py |
diff --git a/urls.py b/urls.py
index <HASH>..<HASH> 100644
--- a/urls.py
+++ b/urls.py
@@ -31,7 +31,7 @@ urlpatterns = patterns('',
(r'^api/', include('api.urls')),
(r'^syn/', include('synagg.urls')),
(r'^massmedia/', include('massmedia.urls')),
- (r'^sitemaps/', include('news_sitemaps.urls')),
+ #... | Commented out sitemaps urls until they are included | py |
diff --git a/telethon/utils.py b/telethon/utils.py
index <HASH>..<HASH> 100644
--- a/telethon/utils.py
+++ b/telethon/utils.py
@@ -54,7 +54,7 @@ mimetypes.add_type('audio/flac', '.flac')
mimetypes.add_type('application/x-tgsticker', '.tgs')
USERNAME_RE = re.compile(
- r'@|(?:https?://)?(?:www\.)?(?:telegram\.(?:... | Add support for new invite link format (#<I>) | py |
diff --git a/telethon/telegram_client.py b/telethon/telegram_client.py
index <HASH>..<HASH> 100644
--- a/telethon/telegram_client.py
+++ b/telethon/telegram_client.py
@@ -2505,7 +2505,11 @@ class TelegramClient(TelegramBareClient):
for builder, callback in self._event_builders:
event = builder.bui... | Fix events.Raw not having ._set_client | py |
diff --git a/salt/modules/grains.py b/salt/modules/grains.py
index <HASH>..<HASH> 100644
--- a/salt/modules/grains.py
+++ b/salt/modules/grains.py
@@ -437,7 +437,7 @@ def delval(key, destructive=False, refresh=True):
salt '*' grains.delval key
'''
- setval(key, None, destructive=destructive, refresh=... | Remove extra refresh reference that snuck in | py |
diff --git a/vm.py b/vm.py
index <HASH>..<HASH> 100644
--- a/vm.py
+++ b/vm.py
@@ -560,8 +560,12 @@ def constant_fold(code, silent=True, ignore_errors=True):
except ValueError:
pass
- if isnumber(a) and b == "cast_str":
- string = '"%s"' % str(a)
+ ... | Expands cast_str constant folding | py |
diff --git a/spyderlib/widgets/externalshell/sitecustomize.py b/spyderlib/widgets/externalshell/sitecustomize.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/externalshell/sitecustomize.py
+++ b/spyderlib/widgets/externalshell/sitecustomize.py
@@ -600,9 +600,6 @@ def clear_post_mortem():
ipython_shell =... | Remove unused IPython startup command. | py |
diff --git a/docs/sphinxext/plot_generator.py b/docs/sphinxext/plot_generator.py
index <HASH>..<HASH> 100644
--- a/docs/sphinxext/plot_generator.py
+++ b/docs/sphinxext/plot_generator.py
@@ -13,13 +13,24 @@ import token
import tokenize
import shutil
import json
-
-import matplotlib
-matplotlib.use('Agg')
-import mat... | Minor changes in plot_generator.py to work in readthedocs. | py |
diff --git a/pubsub/google/cloud/pubsub_v1/subscriber/_consumer.py b/pubsub/google/cloud/pubsub_v1/subscriber/_consumer.py
index <HASH>..<HASH> 100644
--- a/pubsub/google/cloud/pubsub_v1/subscriber/_consumer.py
+++ b/pubsub/google/cloud/pubsub_v1/subscriber/_consumer.py
@@ -320,7 +320,7 @@ class Consumer(object):
... | Fix missing iter on request stream (#<I>) | py |
diff --git a/storm/ssh_config.py b/storm/ssh_config.py
index <HASH>..<HASH> 100644
--- a/storm/ssh_config.py
+++ b/storm/ssh_config.py
@@ -9,7 +9,6 @@ from paramiko.config import SSHConfig
from operator import itemgetter
from exceptions import StormValueError
-from paramiko.config import proxy_re
class StormCo... | proxy_re import causes problems for older versions of paramiko. it's hardcoded into storm codebase now. fixes #<I>. | py |
diff --git a/s_tui/Sources/RaplPowerSource.py b/s_tui/Sources/RaplPowerSource.py
index <HASH>..<HASH> 100644
--- a/s_tui/Sources/RaplPowerSource.py
+++ b/s_tui/Sources/RaplPowerSource.py
@@ -63,10 +63,10 @@ class RaplPowerSource(Source):
return self.get_power_usage()
def get_maximum(self):
- retu... | Small error in rapl power source | py |
diff --git a/squad/api/rest.py b/squad/api/rest.py
index <HASH>..<HASH> 100644
--- a/squad/api/rest.py
+++ b/squad/api/rest.py
@@ -173,7 +173,7 @@ class BuildSerializer(serializers.HyperlinkedModelSerializer):
testruns = serializers.HyperlinkedIdentityField(view_name='build-testruns')
testjobs = serializers.H... | api: only expose Build.metadata on specialized endpoint Build.metadata is expensive, and can require fetching several test runs with their potentially large text fields. We don't want to do that for each build when listing them. | 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
@@ -33,7 +33,6 @@ sys.path.insert(0, os.path.abspath('../../sk_dsp_comm'))
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
- 'matplotl... | only_directive is builtin now so removing from extensions list | py |
diff --git a/umap/umap_.py b/umap/umap_.py
index <HASH>..<HASH> 100644
--- a/umap/umap_.py
+++ b/umap/umap_.py
@@ -1307,7 +1307,8 @@ class UMAP(BaseEstimator):
if self.target_n_neighbors < 2 and self.target_n_neighbors != -1:
raise ValueError("target_n_neighbors must be greater than 2")
i... | convert to Python int rather than raise an error | py |
diff --git a/tests/gui/test_group_ungroup.py b/tests/gui/test_group_ungroup.py
index <HASH>..<HASH> 100644
--- a/tests/gui/test_group_ungroup.py
+++ b/tests/gui/test_group_ungroup.py
@@ -65,6 +65,10 @@ def trigger_ungroup_signals():
menubar_ctrl = main_window_controller.get_controller('menu_bar_controller')
... | fix(group and ungroup): put in work around for wait again but mark it as TODO | py |
diff --git a/src/plone/app/mosaic/upgrades.py b/src/plone/app/mosaic/upgrades.py
index <HASH>..<HASH> 100644
--- a/src/plone/app/mosaic/upgrades.py
+++ b/src/plone/app/mosaic/upgrades.py
@@ -83,6 +83,8 @@ def upgrade_8_to_9(context):
# Add Mosaic view into available view methods
view_methods = [i for ... | Fix upgrade step to remove 'view' from available view methods for types with layout behavior enabled | py |
diff --git a/opengem/output/risk.py b/opengem/output/risk.py
index <HASH>..<HASH> 100644
--- a/opengem/output/risk.py
+++ b/opengem/output/risk.py
@@ -46,9 +46,11 @@ class RiskXMLWriter(writer.FileWriter):
pe_values = _curve_pe_as_gmldoublelist(curve_object)
- subnode_pe = self.root_... | A little tidy-up from findall to a find check, having checked the lxml docs on how empty nodes are handled in if statements. Former-commit-id: ac4a9aea<I>a<I>a<I>b<I>a<I>a<I>d<I>b5b3af<I> | py |
diff --git a/nosedjango/nosedjango.py b/nosedjango/nosedjango.py
index <HASH>..<HASH> 100644
--- a/nosedjango/nosedjango.py
+++ b/nosedjango/nosedjango.py
@@ -148,9 +148,6 @@ class NoseDjango(Plugin):
settings.DATABASE_ENGINE = 'sqlite3'
settings.TEST_DATABASE_NAME = None # in-memory database
... | Fix a bug caused by a merge Closes #<I> | py |
diff --git a/test/input/func_noerror_models_py33.py b/test/input/func_noerror_models_py33.py
index <HASH>..<HASH> 100644
--- a/test/input/func_noerror_models_py33.py
+++ b/test/input/func_noerror_models_py33.py
@@ -23,7 +23,7 @@ class SomeModel(models.Model):
except self.MultipleObjectsReturned:
p... | Another space before a bracked in a print statement is making tests fail... | py |
diff --git a/tests/test_jira.py b/tests/test_jira.py
index <HASH>..<HASH> 100644
--- a/tests/test_jira.py
+++ b/tests/test_jira.py
@@ -26,7 +26,7 @@ import logging
import unittest
from base import TestBaseBackend
-from grimoire_elk.ocean.jenkins import JenkinsOcean
+from grimoire_elk.raw.jenkins import JenkinsOcean... | [tests] Update import section test_jira | py |
diff --git a/tests/test_potential.py b/tests/test_potential.py
index <HASH>..<HASH> 100644
--- a/tests/test_potential.py
+++ b/tests/test_potential.py
@@ -2780,10 +2780,10 @@ class SolidBodyRotationSpiralArmsPotential(SolidBodyRotationWrapperPotential):
return SolidBodyRotationWrapperPotential.__new__(cls,amp=... | Make the solidbody orbit test a wrapper of a planar potential, to test that path through the code | py |
diff --git a/LiSE/LiSE/cache.py b/LiSE/LiSE/cache.py
index <HASH>..<HASH> 100644
--- a/LiSE/LiSE/cache.py
+++ b/LiSE/LiSE/cache.py
@@ -157,7 +157,10 @@ class RulesHandledCache(object):
unhandl = unhandl[spot]
if turn not in unhandl.setdefault(branch, {}):
unhandl[branch][turn] = list(... | Suppress an error when storing a handled rule I think this is safe, since storing handledness in this situation is just redundant. | py |
diff --git a/tests/build_image/tests.py b/tests/build_image/tests.py
index <HASH>..<HASH> 100644
--- a/tests/build_image/tests.py
+++ b/tests/build_image/tests.py
@@ -63,6 +63,13 @@ class BuildImageTestCase(CLITestCase):
def test_info(self, api):
self._setup_detail(api)
self._setup_list_2(api)
+ ... | Add test for build-image detail. | py |
diff --git a/dreamssh/config.py b/dreamssh/config.py
index <HASH>..<HASH> 100644
--- a/dreamssh/config.py
+++ b/dreamssh/config.py
@@ -33,6 +33,8 @@ ssh.keydir = os.path.join(main.config.datadir, "ssh")
ssh.privkey = "id_rsa"
ssh.pubkey = "id_rsa.pub"
ssh.localdir = "~/.ssh"
+ssh.userdirtemplate = os.path.join(main.... | Added new config options for user keys. | py |
diff --git a/mysql/toolkit/script/dump.py b/mysql/toolkit/script/dump.py
index <HASH>..<HASH> 100644
--- a/mysql/toolkit/script/dump.py
+++ b/mysql/toolkit/script/dump.py
@@ -51,10 +51,7 @@ def dump_commands(commands, sql_script, db=None, sub_folder='fails'):
os.mkdir(dump_dir)
# Create list of (path, c... | Replace command_filepath list creation with list comprehension | py |
diff --git a/integration_test/integration_tests.py b/integration_test/integration_tests.py
index <HASH>..<HASH> 100644
--- a/integration_test/integration_tests.py
+++ b/integration_test/integration_tests.py
@@ -72,7 +72,7 @@ def send_letter_notification_test_response(python_client):
def send_precompiled_letter_notif... | Fix one_page_pdf.pdf path | py |
diff --git a/tests/integration/test_utils.py b/tests/integration/test_utils.py
index <HASH>..<HASH> 100644
--- a/tests/integration/test_utils.py
+++ b/tests/integration/test_utils.py
@@ -63,10 +63,10 @@ def test_check_docker():
def test_run_cmd():
- ret = run_cmd(["sh", "-c", "for x in `seq 1 5`; do echo $x; sl... | Make test_run_cmd faster. | py |
diff --git a/rarfile.py b/rarfile.py
index <HASH>..<HASH> 100644
--- a/rarfile.py
+++ b/rarfile.py
@@ -465,7 +465,7 @@ class RarInfo(object):
return False
def needs_password(self):
- return self.flags & RAR_FILE_PASSWORD
+ return (self.flags & RAR_FILE_PASSWORD) > 0
class RarFile(obje... | Return boolean from needs_password() Fixes: #<I> | py |
diff --git a/test/getdns_test.py b/test/getdns_test.py
index <HASH>..<HASH> 100644
--- a/test/getdns_test.py
+++ b/test/getdns_test.py
@@ -19,9 +19,8 @@ class TestGetdnsMethods(unittest.TestCase):
def test_bogus_attribute(self):
c = getdns.Context()
- with self.assertRaises(AttributeError, c.asdf... | fix usage of assertRaises in test_bogus_attributes test | py |
diff --git a/pyamg/blackbox.py b/pyamg/blackbox.py
index <HASH>..<HASH> 100644
--- a/pyamg/blackbox.py
+++ b/pyamg/blackbox.py
@@ -99,12 +99,13 @@ def solver_configuration(A, B=None, verb=True):
# Detect symmetry
if ishermitian(A, fast_check=True):
config['symmetry'] = 'hermitian'
+ if verb:
+... | Changed blackbox solver output to correctly state non-Hermitian instead of non-symmetric | py |
diff --git a/kmip/core/enums.py b/kmip/core/enums.py
index <HASH>..<HASH> 100644
--- a/kmip/core/enums.py
+++ b/kmip/core/enums.py
@@ -500,6 +500,15 @@ class KeyRoleType(enum.Enum):
PVKOTH = 0x00000015
+class State(enum.Enum):
+ PRE_ACTIVE = 0x00000001
+ ACTIVE = 0x00000002
+... | Adding the State enumeration This change adds the State enumeration to the enumerations set. | py |
diff --git a/downhill/dataset.py b/downhill/dataset.py
index <HASH>..<HASH> 100644
--- a/downhill/dataset.py
+++ b/downhill/dataset.py
@@ -100,7 +100,7 @@ class Dataset:
if not self.iteration_size:
try:
self.iteration_size = len(inputs)
- except TypeError: # has no len... | Catch AttributeError for no length. Closes issue #1. | py |
diff --git a/wal_e/operator/backup.py b/wal_e/operator/backup.py
index <HASH>..<HASH> 100644
--- a/wal_e/operator/backup.py
+++ b/wal_e/operator/backup.py
@@ -53,7 +53,7 @@ class Backup(object):
bl = self._backup_list(detail)
# If there is no query, return an exhaustive list, otherwise
- # fi... | Fix a typo in comment. Harmless. | py |
diff --git a/salt/utils/event.py b/salt/utils/event.py
index <HASH>..<HASH> 100644
--- a/salt/utils/event.py
+++ b/salt/utils/event.py
@@ -279,18 +279,10 @@ class SaltEvent(object):
def connect_pull(self, timeout=1000):
'''
Establish a connection with the event pull socket
- Set the send t... | SNDTIMEO is not implemented in pyzmq, and since we are using linger this gets us the same thing | py |
diff --git a/liquid_tags/graphviz.py b/liquid_tags/graphviz.py
index <HASH>..<HASH> 100644
--- a/liquid_tags/graphviz.py
+++ b/liquid_tags/graphviz.py
@@ -51,6 +51,7 @@ Output
import base64
import re
+from errno import EINVAL, EPIPE
from .mdx_liquid_tags import LiquidTags
SYNTAX = '{% dot graphviz [program] [do... | Python 3 requires from errno import EINVAL, EPIPE Python 2 did not require these import but Python 3 does. | py |
diff --git a/brain/py2stdlib.py b/brain/py2stdlib.py
index <HASH>..<HASH> 100644
--- a/brain/py2stdlib.py
+++ b/brain/py2stdlib.py
@@ -301,17 +301,16 @@ def infer_enum_class(node, context=None):
for target in parent.targets:
# Replace all the assignments with our mocked class.
... | Use the same representation from the definition time for mocked enums. | py |
diff --git a/visidata/settings.py b/visidata/settings.py
index <HASH>..<HASH> 100644
--- a/visidata/settings.py
+++ b/visidata/settings.py
@@ -194,7 +194,7 @@ class OptionsObject:
objname = self._opts.objname(obj)
vd.cmdlog.addRow(vd.cmdlog.newRow(sheet=objname, row=opt... | [cmdlog-] intialise undofuncs to empty list when add a row to cmdlog Closes #<I> The assumption in the code is that undofuncs is an empty list. This assumption was not met with `set-options`. | py |
diff --git a/alarmdecoder/messages.py b/alarmdecoder/messages.py
index <HASH>..<HASH> 100644
--- a/alarmdecoder/messages.py
+++ b/alarmdecoder/messages.py
@@ -13,6 +13,7 @@ devices.
"""
import re
+import datetime
from .util import InvalidMessageError
@@ -25,11 +26,14 @@ class BaseMessage(object):
raw = No... | Added timestamp to messages. | py |
diff --git a/api/models.py b/api/models.py
index <HASH>..<HASH> 100644
--- a/api/models.py
+++ b/api/models.py
@@ -19,6 +19,7 @@ from django.db.models.signals import post_delete
from django.db.models.signals import post_save
from django.utils.encoding import python_2_unicode_compatible
from django_fsm import FSMFiel... | fix(fsm): save state transitions as they happen | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,9 +1,13 @@
from setuptools import setup
+with open('README.rst', encoding="utf-8") as f:
+ readme = f.read()
+
setup(
name='cryptocompare',
- version='0.1',
+ version='0.2',
descriptio... | added long_description and <I> | py |
diff --git a/tensorbase/stoch.py b/tensorbase/stoch.py
index <HASH>..<HASH> 100644
--- a/tensorbase/stoch.py
+++ b/tensorbase/stoch.py
@@ -105,8 +105,7 @@ class GaussianLayerConv(StochLayer):
x must be 2D. [batch_size * eqsamples* iwsamples, num_latent]
"""
mu, std, h, w = self.params
- ... | convnet and deconvnet | py |
diff --git a/lyricsgenius/api.py b/lyricsgenius/api.py
index <HASH>..<HASH> 100644
--- a/lyricsgenius/api.py
+++ b/lyricsgenius/api.py
@@ -122,7 +122,7 @@ class _API(object):
def _result_is_lyrics(self, song_title):
"""Returns False if result from Genius is not actually song lyrics"""
regex = re.... | Add additional terms to filter non-songs | py |
diff --git a/neuropythy/util/core.py b/neuropythy/util/core.py
index <HASH>..<HASH> 100644
--- a/neuropythy/util/core.py
+++ b/neuropythy/util/core.py
@@ -171,7 +171,7 @@ def normalize(data):
return newdict
elif pimms.is_array(data, ('number', 'string', 'unicode', 'bool')):
# numpy arrays just ge... | fix so that arrays of nparrays will work with normalize() | py |
diff --git a/dvc/output.py b/dvc/output.py
index <HASH>..<HASH> 100644
--- a/dvc/output.py
+++ b/dvc/output.py
@@ -872,8 +872,8 @@ class Output:
try:
self.get_dir_cache(jobs=jobs, remote=remote)
- except RemoteMissingDepsError as ex:
- raise ex
+ except RemoteMissingDeps... | Reraise RemoteMissingDepsError as is | py |
diff --git a/bbc_tracklist.py b/bbc_tracklist.py
index <HASH>..<HASH> 100755
--- a/bbc_tracklist.py
+++ b/bbc_tracklist.py
@@ -184,7 +184,8 @@ def tag_audio_file(audio_file, tracklisting):
"""
try:
save_tag_to_audio_file(audio_file, tracklisting)
- except IOError:
+ # TODO: is IOError required ... | Add exception case for mediafile Didn't use to be present. Was causing tagging to fail, if either m4a or mp3 weren't present. IOError might be removable now. | py |
diff --git a/country_converter/version.py b/country_converter/version.py
index <HASH>..<HASH> 100644
--- a/country_converter/version.py
+++ b/country_converter/version.py
@@ -1 +1 @@
-__version__ = "0.7.1d1"
+__version__ = "0.7.1.dev1" | made version numbering pypi compatible | py |
diff --git a/src/OpenSSL/crypto.py b/src/OpenSSL/crypto.py
index <HASH>..<HASH> 100644
--- a/src/OpenSSL/crypto.py
+++ b/src/OpenSSL/crypto.py
@@ -3239,19 +3239,3 @@ load_pkcs12 = utils.deprecated(
),
DeprecationWarning,
)
-
-
-# There are no direct unit tests for this initialization. It is tested
-# indire... | remove more global initialization that isn't required on modern openssl (#<I>) | py |
diff --git a/src/p4p/client/raw.py b/src/p4p/client/raw.py
index <HASH>..<HASH> 100644
--- a/src/p4p/client/raw.py
+++ b/src/p4p/client/raw.py
@@ -204,7 +204,7 @@ class Context(object):
def __del__(self):
if self._ctxt is not None:
warnings.warn("%s collected without close()" % self.__class__... | client: avoid superfluous close() Fine with py 3.x where __del__ is a finalizer. Potentially troublesome with 2.x where 'self' may be partially collected (to break a loop). | py |
diff --git a/docs/examples/async_rpc.py b/docs/examples/async_rpc.py
index <HASH>..<HASH> 100644
--- a/docs/examples/async_rpc.py
+++ b/docs/examples/async_rpc.py
@@ -1,6 +1,6 @@
with ClusterRpcProxy(config) as cluster_rpc:
- hello_res = cluster_rpc.service_x.remote_method.async("hello")
- world_res = cluster_rp... | use call_async instead of async in docs example | py |
diff --git a/safe_qgis/test_dock.py b/safe_qgis/test_dock.py
index <HASH>..<HASH> 100644
--- a/safe_qgis/test_dock.py
+++ b/safe_qgis/test_dock.py
@@ -863,18 +863,19 @@ class DockTest(unittest.TestCase):
# Enable on-the-fly reprojection
setCanvasCrs(GEOCRS, True)
- # Zoom to an area where the... | Fix for failing test for #<I> | py |
diff --git a/src/bezier/_algebraic_intersection.py b/src/bezier/_algebraic_intersection.py
index <HASH>..<HASH> 100644
--- a/src/bezier/_algebraic_intersection.py
+++ b/src/bezier/_algebraic_intersection.py
@@ -1379,14 +1379,9 @@ def all_intersections(candidates_left, candidates_right):
"""
result = []
f... | Stop supporting Linearization in algebraic `all_intersections()`. This also fixes a lint error with too many locals (which is a secondary, not primary, concern). See failure: <URL> | py |
diff --git a/pyemma/msm/tests/test_its_oom.py b/pyemma/msm/tests/test_its_oom.py
index <HASH>..<HASH> 100644
--- a/pyemma/msm/tests/test_its_oom.py
+++ b/pyemma/msm/tests/test_its_oom.py
@@ -30,9 +30,17 @@ import warnings
from pyemma.msm import markov_model
from pyemma.util.linalg import _sort_by_norm
-from pyemma.... | [test_its_oom] use n_jobs=None to speed up testing. | py |
diff --git a/salt/cloud/clouds/nova.py b/salt/cloud/clouds/nova.py
index <HASH>..<HASH> 100644
--- a/salt/cloud/clouds/nova.py
+++ b/salt/cloud/clouds/nova.py
@@ -148,7 +148,6 @@ avail_locations = namespaced_function(avail_locations, globals())
script = namespaced_function(script, globals())
destroy = namespaced_func... | Remove the global conn variable. fixes #<I> This should have been removed before the previous pull request | py |
diff --git a/pyemma/_base/serialization/serialization.py b/pyemma/_base/serialization/serialization.py
index <HASH>..<HASH> 100644
--- a/pyemma/_base/serialization/serialization.py
+++ b/pyemma/_base/serialization/serialization.py
@@ -169,6 +169,12 @@ class _SerializableBase(object):
self.__save_data_producer ... | [serialization] deny saving datainmemory | py |
diff --git a/axiom/batch.py b/axiom/batch.py
index <HASH>..<HASH> 100644
--- a/axiom/batch.py
+++ b/axiom/batch.py
@@ -19,9 +19,7 @@ from twisted.conch.insults import insults
from twisted.conch.manhole_ssh import ConchFactory, TerminalUser, TerminalSession
from twisted.conch import interfaces as iconch
-from epsil... | break circular project dependencies by moving juice juice is now a feature of epsilon. This is a simple mechanical move, which should make releasing axiom a bit easier, since it no longer depends on vertex. Author: glyph Reviewer: washort Fixes #<I> | py |
diff --git a/helpers/postgresql.py b/helpers/postgresql.py
index <HASH>..<HASH> 100644
--- a/helpers/postgresql.py
+++ b/helpers/postgresql.py
@@ -245,10 +245,11 @@ class Postgresql:
ret = subprocess.call(self._pg_ctl + ['start', '-o', self.server_options()]) == 0
ret and self.load_replication_slots()... | call on_change_callback only if it has been set. | py |
diff --git a/pyxmpp/iq.py b/pyxmpp/iq.py
index <HASH>..<HASH> 100644
--- a/pyxmpp/iq.py
+++ b/pyxmpp/iq.py
@@ -127,6 +127,18 @@ class Iq(Stanza):
stanza = Iq(stanza_type = "result", from_jid = self.to_jid,
to_jid = self.from_jid, stanza_id = self.stanza_id)
return stanza
+ ... | Iq.get_payload() method added | py |
diff --git a/cmd.py b/cmd.py
index <HASH>..<HASH> 100755
--- a/cmd.py
+++ b/cmd.py
@@ -3,7 +3,7 @@ import os
import binascii
import argparse
import json
-import threading
+import base64
from trezorlib.client import TrezorClient
from trezorlib.api_blockchain import BlockchainApi
@@ -135,10 +135,17 @@ class Comman... | Fixing sign_message/verify_message API in cmd | py |
diff --git a/law/contrib/pyarrow/util.py b/law/contrib/pyarrow/util.py
index <HASH>..<HASH> 100644
--- a/law/contrib/pyarrow/util.py
+++ b/law/contrib/pyarrow/util.py
@@ -40,7 +40,7 @@ def merge_parquet_files(src_paths, dst_path, force=True, callback=None, writer_o
# default writer options
_writer_opts = di... | Fix parquet writer version in pyarrow contrib. | 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
@@ -33,6 +33,7 @@ MOCK_MODULES = ['twisted', 'twisted.internet',
'magic',
'gpgme',
'configobj',
+ 'validate',
... | docs: fix rtfd.org build | py |
diff --git a/synapse/axon.py b/synapse/axon.py
index <HASH>..<HASH> 100644
--- a/synapse/axon.py
+++ b/synapse/axon.py
@@ -562,8 +562,6 @@ class Axon(s_config.Config, AxonMixin):
self.syncdir = None
- self.onfini(self._onAxonFini)
-
self.onfini(self.core.fini)
self.onfini(self.heap... | Fini axon threads AFTER giving the persist file objects a chance to shutdown | py |
diff --git a/bench/serializer-bench/clean_bench.py b/bench/serializer-bench/clean_bench.py
index <HASH>..<HASH> 100644
--- a/bench/serializer-bench/clean_bench.py
+++ b/bench/serializer-bench/clean_bench.py
@@ -39,7 +39,11 @@ def run_clean_bench(drive_path, parameters, workload):
serv = subprocess.Subprocess(
... | Made clean_bench.py kill its subprocess | py |
diff --git a/tests/integration/modules/test_cp.py b/tests/integration/modules/test_cp.py
index <HASH>..<HASH> 100644
--- a/tests/integration/modules/test_cp.py
+++ b/tests/integration/modules/test_cp.py
@@ -1,7 +1,3 @@
-# -*- coding: utf-8 -*-
-
-from __future__ import absolute_import, print_function, unicode_literals
... | Drop Py2 and six on tests/integration/modules/test_cp.py | py |
diff --git a/sos/plugins/yum.py b/sos/plugins/yum.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/yum.py
+++ b/sos/plugins/yum.py
@@ -24,6 +24,7 @@ class Yum(Plugin, RedHatPlugin):
files = ('/etc/yum.conf',)
packages = ('yum',)
+ verify_packages = ('yum',)
option_list = [
("yumlist", "li... | [yum] move yum package verification to yum plugin | py |
diff --git a/digitalocean/Event.py b/digitalocean/Event.py
index <HASH>..<HASH> 100644
--- a/digitalocean/Event.py
+++ b/digitalocean/Event.py
@@ -1,10 +1,10 @@
import requests
class Event(object):
- def __init__(self, event_id="", client_id="", api_key=""):
+ def __init__(self, event_id=""):
self.id... | Removed client_id and api_key from __init__ of Event | py |
diff --git a/sirmordred/task.py b/sirmordred/task.py
index <HASH>..<HASH> 100644
--- a/sirmordred/task.py
+++ b/sirmordred/task.py
@@ -252,3 +252,8 @@ class Task():
logger.error("Error retrieving Elasticsearch version: " + url)
raise
return major
+
+ @staticmethod
+ def retain_d... | [task] Delete data based on retation_hours param This code enforces the data retention policy after the execution of a task. In a nutshell, the data in a target index is deleted based on the value declare in the config param `retentions_hours`. | py |
diff --git a/slickqa/data.py b/slickqa/data.py
index <HASH>..<HASH> 100644
--- a/slickqa/data.py
+++ b/slickqa/data.py
@@ -409,8 +409,8 @@ class GraphValueReference(micromodels.Model):
class Graph(micromodels.Model):
- columns = micromodels.FieldCollectionField(GraphColumnReference)
- values = micromodels.Fi... | Use ModelCollectionField for list of models | py |
diff --git a/kwalitee/cli/check.py b/kwalitee/cli/check.py
index <HASH>..<HASH> 100644
--- a/kwalitee/cli/check.py
+++ b/kwalitee/cli/check.py
@@ -323,7 +323,7 @@ def authors(obj, commit='HEAD', skip_merge_commits=False):
if skip_merge_commits and _is_merge_commit(commit):
continue
messag... | cli: fix author name in output * Fixes 'authors: wrong format in error message'. (closes #<I>) | py |
diff --git a/cloudvolume/skeleton.py b/cloudvolume/skeleton.py
index <HASH>..<HASH> 100644
--- a/cloudvolume/skeleton.py
+++ b/cloudvolume/skeleton.py
@@ -946,7 +946,7 @@ class Skeleton(object):
c.f. http://research.mssm.edu/cnic/swc.html
"""
- from ... import __version__
+ from . import __version__
... | fix: swc exporter broken due to relative path import location change | py |
diff --git a/wcmatch/glob.py b/wcmatch/glob.py
index <HASH>..<HASH> 100644
--- a/wcmatch/glob.py
+++ b/wcmatch/glob.py
@@ -36,7 +36,7 @@ __all__ = (
# We don't use util.platform only because we mock it in tests,
# and scandir will not work with bytes on the wrong system.
WIN = sys.platform.startswith('win')
-NO_SCAN... | Don't use scandir on Python < <I> | py |
diff --git a/src/saml2/time_util.py b/src/saml2/time_util.py
index <HASH>..<HASH> 100644
--- a/src/saml2/time_util.py
+++ b/src/saml2/time_util.py
@@ -306,6 +306,9 @@ def not_on_or_after(not_on_or_after):
not_on_or_after = time.mktime(not_on_or_after)
elif isinstance(not_on_or_after, basestring):
... | A not_on_or_after of 0 means forever | py |
diff --git a/lib/ansiblelint/rules/CommandsInsteadOfModulesRule.py b/lib/ansiblelint/rules/CommandsInsteadOfModulesRule.py
index <HASH>..<HASH> 100644
--- a/lib/ansiblelint/rules/CommandsInsteadOfModulesRule.py
+++ b/lib/ansiblelint/rules/CommandsInsteadOfModulesRule.py
@@ -38,7 +38,7 @@ class CommandsInsteadOfModulesR... | adding chkconfig_insteadof_service rule | py |
diff --git a/test/test_wheres.py b/test/test_wheres.py
index <HASH>..<HASH> 100644
--- a/test/test_wheres.py
+++ b/test/test_wheres.py
@@ -3,17 +3,21 @@
import cmudict
from os import path
+def _assert_filesize(filename):
+ if (0 >= path.getsize(filename)):
+ raise AssertionError(filename + " <= 0 bytes")
... | Simplified test_wheres and explicitly raise assertionerror. | py |
diff --git a/phoebe/parameters/parameters.py b/phoebe/parameters/parameters.py
index <HASH>..<HASH> 100644
--- a/phoebe/parameters/parameters.py
+++ b/phoebe/parameters/parameters.py
@@ -4507,8 +4507,8 @@ class FloatParameter(Parameter):
value = value % (360*u.deg)
logger.warning("wrap... | allow for FloatParameters to be set to nan if a constraint fails particularly useful for the pot<->requiv constraint for contacts when the system parameters no longer are valid (will fail system checks due to overflow/underflow) | py |
diff --git a/yoti_python_sdk/activity_details.py b/yoti_python_sdk/activity_details.py
index <HASH>..<HASH> 100644
--- a/yoti_python_sdk/activity_details.py
+++ b/yoti_python_sdk/activity_details.py
@@ -11,7 +11,7 @@ from yoti_python_sdk.profile import Profile, ApplicationProfile
class ActivityDetails:
def __in... | SDK-<I>: Add comments to the helper methods in ApplicationProfile | py |
diff --git a/soco/data_structures_entry.py b/soco/data_structures_entry.py
index <HASH>..<HASH> 100644
--- a/soco/data_structures_entry.py
+++ b/soco/data_structures_entry.py
@@ -95,13 +95,12 @@ def attempt_datastructure_upgrade(didl_item):
# matter what it is!
item_id = '11111111{0}'.format(path)
-... | Pass metadata over to upraded music service item | py |
diff --git a/lib/PrettyPrinter.py b/lib/PrettyPrinter.py
index <HASH>..<HASH> 100644
--- a/lib/PrettyPrinter.py
+++ b/lib/PrettyPrinter.py
@@ -46,7 +46,7 @@ def pp_color(p_todo_str, p_todo):
p_todo_str = '%s%s%s' % (color, p_todo_str, NEUTRAL_COLOR)
if Config.HIGHLIGHT_PROJECTS_CONTEXTS:
- ... | Match projects and contexts properly when highlighting. | py |
diff --git a/odl/util/graphics.py b/odl/util/graphics.py
index <HASH>..<HASH> 100644
--- a/odl/util/graphics.py
+++ b/odl/util/graphics.py
@@ -41,6 +41,8 @@ def show_discrete_function(dfunc, method='', title=None, indices=None,
Parameters
----------
+ dfunc : `DiscreteLpVector`
+ The discretized f... | MAINT: added doc for undocumented parameter in show_discrete_function | py |
diff --git a/LiSE/LiSE/proxy.py b/LiSE/LiSE/proxy.py
index <HASH>..<HASH> 100644
--- a/LiSE/LiSE/proxy.py
+++ b/LiSE/LiSE/proxy.py
@@ -1851,17 +1851,20 @@ class EngineProxy(AbstractEngine):
self._character_rulebooks_cache = StructuredDefaultDict(
1, RuleBookProxy, kwargs_munger=lambda inst, k: {
... | Fix caching of rulebook proxies | py |
diff --git a/tests/test_command__devenv.py b/tests/test_command__devenv.py
index <HASH>..<HASH> 100644
--- a/tests/test_command__devenv.py
+++ b/tests/test_command__devenv.py
@@ -81,6 +81,12 @@ class DevEnvTestCase(TestCase):
raise SkipTest("Skipping because virtualenv does not work")
virt... | HOSTDEV-<I> fixing test | py |
diff --git a/contrib/sacrebleu/sacrebleu.py b/contrib/sacrebleu/sacrebleu.py
index <HASH>..<HASH> 100755
--- a/contrib/sacrebleu/sacrebleu.py
+++ b/contrib/sacrebleu/sacrebleu.py
@@ -165,7 +165,7 @@ from collections import Counter, namedtuple
from itertools import zip_longest
from typing import List, Iterable, Tuple
... | small bugfix (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -18,7 +18,7 @@ test_requirements = []
setup(
name='vcf-annotate-polyphen',
- version='0.1.0',
+ version='0.1.1',
description="a tool to annotate human VCF files with PolyPhen2 effect measures",
long_des... | fix issue with the unstable PyPi server: bump the minor version | py |
diff --git a/phoebe/frontend/io.py b/phoebe/frontend/io.py
index <HASH>..<HASH> 100644
--- a/phoebe/frontend/io.py
+++ b/phoebe/frontend/io.py
@@ -605,11 +605,12 @@ def par_value(param, index=None):
unit = None
val = param.get_quantity(unit=unit).value
- if d['qualifier'] == 'alb':
- ... | fixed inconsistent alb treatment in legacy wrapper | py |
diff --git a/modules/CUAV/camera.py b/modules/CUAV/camera.py
index <HASH>..<HASH> 100644
--- a/modules/CUAV/camera.py
+++ b/modules/CUAV/camera.py
@@ -751,7 +751,7 @@ def mavlink_packet(m):
bottle = m.servo7_raw
if bottle == 1000:
mpstate.console.set_status('Bottle', 'Bottle: HELD', row=0... | camera: bottle release at <I> | py |
diff --git a/nodeconductor/structure/tests/test_project.py b/nodeconductor/structure/tests/test_project.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/structure/tests/test_project.py
+++ b/nodeconductor/structure/tests/test_project.py
@@ -153,7 +153,7 @@ class ProjectFilterTest(test.APITransactionTestCase):
... | Drop create from test name [WAL-<I>] | py |
diff --git a/visidata/pivot.py b/visidata/pivot.py
index <HASH>..<HASH> 100644
--- a/visidata/pivot.py
+++ b/visidata/pivot.py
@@ -46,7 +46,7 @@ class SheetPivot(Sheet):
self.groupByCols = groupByCols # whose values become rows
def isNumericRange(self, col):
- return isNumeric(col) and options.h... | [options-] all hist_numeric_ranges are now changed to numeric_binning | py |
diff --git a/anytemplate/__init__.py b/anytemplate/__init__.py
index <HASH>..<HASH> 100644
--- a/anytemplate/__init__.py
+++ b/anytemplate/__init__.py
@@ -81,8 +81,10 @@ see its help; see the output of 'help(anytemplate.render)', etc.
"""
from __future__ import absolute_import
from .globals import AUTHOR, VERSION, L... | refactor: enclose imported objects instead of breaking lines with '\' | py |
diff --git a/tests/test_image.py b/tests/test_image.py
index <HASH>..<HASH> 100644
--- a/tests/test_image.py
+++ b/tests/test_image.py
@@ -10,7 +10,7 @@ import unittest
from tempfile import mkdtemp
from landsat.image import Simple, PanSharpen
-from landsat.ndvi import NDVI
+from landsat.ndvi import NDVI, NDVIWithMa... | add test for ndvi with manual colormap | py |
diff --git a/yt_array.py b/yt_array.py
index <HASH>..<HASH> 100644
--- a/yt_array.py
+++ b/yt_array.py
@@ -139,8 +139,8 @@ def validate_comparison_units(this, other, op_string):
if isinstance(other, YTArray):
if not this.units.same_dimensions_as(other.units):
raise YTUnitOperationError(op_str... | Only do a unit conversion for comparison operators if we need it This leads to a 5x speedup for iterating over a YTArray --HG-- branch : yt | py |
diff --git a/honcho/export/base.py b/honcho/export/base.py
index <HASH>..<HASH> 100644
--- a/honcho/export/base.py
+++ b/honcho/export/base.py
@@ -12,11 +12,14 @@ class BaseExport(object):
self.concurrency = concurrency
try:
- self.uid = pwd.getpwnam(options.user).pw_uid
+ user... | Don't assume user gid == user uid There's no reason the user's primary group gid should be the same as their uid. | py |
diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py
index <HASH>..<HASH> 100644
--- a/pyrogram/client/client.py
+++ b/pyrogram/client/client.py
@@ -872,6 +872,7 @@ class Client(Methods, BaseClient):
app.stop()
"""
+
def do_it():
self.terminate()
... | Fix plugins not being properly unloaded Also, plugins' roots values will follow python notation: folder.plugins instead of folder/plugins, in case of roots inside another folder. | py |
diff --git a/everest/tests/test_rdb.py b/everest/tests/test_rdb.py
index <HASH>..<HASH> 100644
--- a/everest/tests/test_rdb.py
+++ b/everest/tests/test_rdb.py
@@ -24,7 +24,7 @@ from sqlalchemy import MetaData
from sqlalchemy import String
from sqlalchemy import Table
from sqlalchemy.engine import create_engine
-from... | Preparing for the move to SQLAlchemy <I>.x | py |
diff --git a/norduniclient/core.py b/norduniclient/core.py
index <HASH>..<HASH> 100644
--- a/norduniclient/core.py
+++ b/norduniclient/core.py
@@ -45,7 +45,7 @@ except ImportError:
NEO4J_URI, NEO4J_USERNAME, NEO4J_PASSWORD = None, None, None
logger.info('Starting up without a Django environment.')
logger... | Added a setter for Grapdb.manager | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.