diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/test/unit/test_response.py b/test/unit/test_response.py index <HASH>..<HASH> 100644 --- a/test/unit/test_response.py +++ b/test/unit/test_response.py @@ -5,7 +5,8 @@ from unittest import TestCase, main import json from jsonrpcserver.response import _sort_response, RequestResponse, \ - NotificationRe...
Response tests added for <I>% coverage
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -57,7 +57,10 @@ setup( keywords='crypto pki', - install_requires=['asn1crypto', 'oscrypto'], + install_requires=[ + 'asn1crypto>=0.13', + 'oscrypto>=0.12' + ], packages=find_packages(exclud...
Minimum asn1crypto and oscrypto versions
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -29,8 +29,19 @@ from setuptools import find_packages import sys import os -sys.path.append("google-code") -from googlecode_distutils_upload import upload as google_upload +try : + sys.path.append("google-code") + fro...
When googlecode_distutils_upload can't be found the ImportError is handled.
py
diff --git a/elpy/ropebackend.py b/elpy/ropebackend.py index <HASH>..<HASH> 100644 --- a/elpy/ropebackend.py +++ b/elpy/ropebackend.py @@ -99,6 +99,7 @@ class RopeBackend(object): **kwargs) except (rope.base.exceptions.BadIdentifierError, rope.base.exceptions....
Catch rope refactoring error in backend
py
diff --git a/nolds/test_measures.py b/nolds/test_measures.py index <HASH>..<HASH> 100644 --- a/nolds/test_measures.py +++ b/nolds/test_measures.py @@ -190,10 +190,10 @@ class TestNoldsCorrDim(unittest.TestCase): n = 1000 data = np.arange(n) cd = nolds.corr_dim(data, 4) - self.assertAlmostEquals(cd, 1,...
bugfix: assertAlmostEquals is deprecated
py
diff --git a/docker/Dockerfile.py b/docker/Dockerfile.py index <HASH>..<HASH> 100644 --- a/docker/Dockerfile.py +++ b/docker/Dockerfile.py @@ -77,7 +77,7 @@ print(heredoc(''' > /etc/apt/sources.list.d/nodesource.list \ && apt-key adv --keyserver keyserver.ubuntu.com --recv 68576280 - RUN add-apt-...
Change python<I> ppa to deadsnakes. (#<I>)
py
diff --git a/salt/log.py b/salt/log.py index <HASH>..<HASH> 100644 --- a/salt/log.py +++ b/salt/log.py @@ -335,9 +335,10 @@ def __remove_null_logging_handler(): return rootLogger = logging.getLogger() + global LoggingNullHandler for handler in rootLogger.handlers: - if handler is NullHa...
When defining `LoggingNullHandler` as `None`, it needs to be `global`.
py
diff --git a/tests/unit/modules/test_inspect_collector.py b/tests/unit/modules/test_inspect_collector.py index <HASH>..<HASH> 100644 --- a/tests/unit/modules/test_inspect_collector.py +++ b/tests/unit/modules/test_inspect_collector.py @@ -19,6 +19,7 @@ # Import Python Libs from __future__ import absolute_import impo...
Handle cases where git can not be found
py
diff --git a/asammdf/__init__.py b/asammdf/__init__.py index <HASH>..<HASH> 100644 --- a/asammdf/__init__.py +++ b/asammdf/__init__.py @@ -11,6 +11,9 @@ from .version import __version__ __all__ = [ '__version__', 'MDF', + 'MDF2', + 'MDF3', + 'MDF4', 'Signal', 'SUPPORTED_VERSIONS', ]
* lib: add MDFx classes to __all__
py
diff --git a/pyontutils/namespaces.py b/pyontutils/namespaces.py index <HASH>..<HASH> 100644 --- a/pyontutils/namespaces.py +++ b/pyontutils/namespaces.py @@ -149,7 +149,7 @@ def _loadPrefixes(): 'locatedIn':'http://purl.obolibrary.org/obo/RO_0001025', 'locationOf':'http://purl.obolibrary.org/obo/RO_0...
namespaces fix brainfart on overlaps: RO:<I> is actually contributes to morphology of (duh)
py
diff --git a/panoptes_client/panoptes.py b/panoptes_client/panoptes.py index <HASH>..<HASH> 100644 --- a/panoptes_client/panoptes.py +++ b/panoptes_client/panoptes.py @@ -22,6 +22,9 @@ class Panoptes(object): 'default': ( 'f79cf5ea821bb161d8cbb52d061ab9a2321d7cb169007003af66b43f7b79ce2a' ...
Add client ID for staging (#8)
py
diff --git a/indra/assemblers/cx_assembler.py b/indra/assemblers/cx_assembler.py index <HASH>..<HASH> 100644 --- a/indra/assemblers/cx_assembler.py +++ b/indra/assemblers/cx_assembler.py @@ -324,10 +324,10 @@ class CxAssembler(object): continue elif isinstance(db_ids, int): ...
Fix bug in CX assembler handling scored groundings
py
diff --git a/can/interfaces/pcan/pcan.py b/can/interfaces/pcan/pcan.py index <HASH>..<HASH> 100644 --- a/can/interfaces/pcan/pcan.py +++ b/can/interfaces/pcan/pcan.py @@ -9,6 +9,7 @@ from can.interfaces.pcan.PCANBasic import * from can.bus import BusABC from can.message import Message from can import CanError +impor...
Use configured bitrate in pcan. Closes #<I> (cherry picked from commit bd<I>d<I>)
py
diff --git a/trackhub/track.py b/trackhub/track.py index <HASH>..<HASH> 100644 --- a/trackhub/track.py +++ b/trackhub/track.py @@ -645,10 +645,7 @@ class HTMLDoc(HubComponent): return obj def _render(self): - if not self.trackdb: - raise ValueError("HTMLDoc object must be connected to ...
minor changes to HTMLDoc to allow inheritance
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -56,7 +56,7 @@ setup( data_files=[( (BASE_DIR, ['data/nssm_original.exe']) )], - install_requires=['indy-plenum-dev==1.2.230', + install_requires=['indy-plenum-dev==1.2.231', 'in...
INDY-<I>: Updated indy-plenum-dev dependency (#<I>)
py
diff --git a/LiSE/rule.py b/LiSE/rule.py index <HASH>..<HASH> 100644 --- a/LiSE/rule.py +++ b/LiSE/rule.py @@ -160,7 +160,8 @@ class RuleBook(MutableSequence): def __iter__(self): if self.engine.caching: - return iter(self._cache) + yield from self._cache + return ...
rulebooks iterate over their caches correctly
py
diff --git a/cmd2.py b/cmd2.py index <HASH>..<HASH> 100755 --- a/cmd2.py +++ b/cmd2.py @@ -117,7 +117,6 @@ if sys.version_info > (3, 0): else: from io import BytesIO as StringIO # Python2 - # Detect whether IPython is installed to determine if the built-in "ipy" command should be included ipython_available =...
Removed an emty line.
py
diff --git a/xtuml/model.py b/xtuml/model.py index <HASH>..<HASH> 100644 --- a/xtuml/model.py +++ b/xtuml/model.py @@ -277,6 +277,7 @@ class IdGenerator(object): ''' readfunc = None + null = None def __init__(self): ''' @@ -309,6 +310,7 @@ class UUIDGenerator(IdGenerator): ''...
model: added null-value to id generators
py
diff --git a/premailer/__init__.py b/premailer/__init__.py index <HASH>..<HASH> 100644 --- a/premailer/__init__.py +++ b/premailer/__init__.py @@ -1,3 +1,3 @@ from premailer import Premailer, transform -__version__ = '2.1.3' +__version__ = '2.1.4'
bump to <I> for @font-face support
py
diff --git a/pymatgen/core/surface.py b/pymatgen/core/surface.py index <HASH>..<HASH> 100644 --- a/pymatgen/core/surface.py +++ b/pymatgen/core/surface.py @@ -617,6 +617,31 @@ class Slab(Structure): return site2 + def symmetrically_add_atom(self, specie, point, coords_are_cartesian=False): + + ""...
added symmetrically_add_atom as a method for the Slab class. Allows for easy modifications of surfaces like reconstructions and adsorption
py
diff --git a/synapse/models/inet.py b/synapse/models/inet.py index <HASH>..<HASH> 100644 --- a/synapse/models/inet.py +++ b/synapse/models/inet.py @@ -207,6 +207,13 @@ class Rfc2822Addr(s_types.Type): def postTypeInit(self): self.setNormFunc(str, self._normPyStr) + self.indxcmpr['^='] = self.indx...
Add indxcmpr for rfc<I>
py
diff --git a/waitinglist/models.py b/waitinglist/models.py index <HASH>..<HASH> 100644 --- a/waitinglist/models.py +++ b/waitinglist/models.py @@ -89,6 +89,9 @@ def handle_user_signup(sender, **kwargs): signup_code = kwargs["form"].cleaned_data["code"] # fetch the cohort for the signup code qs = SignupCo...
Fail silently if an invalid code is used
py
diff --git a/pdfconduit/watermark/add.py b/pdfconduit/watermark/add.py index <HASH>..<HASH> 100644 --- a/pdfconduit/watermark/add.py +++ b/pdfconduit/watermark/add.py @@ -154,7 +154,7 @@ class WatermarkAdd: wtrmrk_page = watermark_reader.getPage(0) wtrmrk_width = (wtrmrk_page.mediaBox.getWidth() / 2) ...
Added conditional statement to handle non-rotated pdfs
py
diff --git a/redis/client.py b/redis/client.py index <HASH>..<HASH> 100644 --- a/redis/client.py +++ b/redis/client.py @@ -158,7 +158,7 @@ class Redis(object): def __init__(self, host='localhost', port=6379, db=0, password=None, socket_timeout=None, connection_pool=None, - ...
renamed path arg to unix_socket_path to make it clearer
py
diff --git a/workbench/server/plugin_manager.py b/workbench/server/plugin_manager.py index <HASH>..<HASH> 100644 --- a/workbench/server/plugin_manager.py +++ b/workbench/server/plugin_manager.py @@ -84,7 +84,7 @@ class PluginManager(object): if f.endswith('.py'): plugin_name = os.path.splitext(os....
fix another bug in on_deleted
py
diff --git a/dvc/repo/get.py b/dvc/repo/get.py index <HASH>..<HASH> 100644 --- a/dvc/repo/get.py +++ b/dvc/repo/get.py @@ -4,7 +4,12 @@ import shortuuid from dvc.stage import Stage from dvc.config import Config -from dvc.exceptions import NotDvcRepoError, UrlNotDvcRepoError, GetDVCFileError +from dvc.exceptions imp...
get: no relpath on output not found (#<I>) * get: no relpath on output not found related #<I> * get: catch output not found
py
diff --git a/pyprophet/levels_contexts.py b/pyprophet/levels_contexts.py index <HASH>..<HASH> 100644 --- a/pyprophet/levels_contexts.py +++ b/pyprophet/levels_contexts.py @@ -596,11 +596,10 @@ def backpropagate_oswr(infile, outfile, apply_scores): script.append('DROP TABLE IF EXISTS SCORE_PROTEIN;') # creat...
Fix bug where SCORE_PROTEIN has a PEPTIDE_ID column.
py
diff --git a/salt/__init__.py b/salt/__init__.py index <HASH>..<HASH> 100644 --- a/salt/__init__.py +++ b/salt/__init__.py @@ -74,6 +74,7 @@ class Master(object): verify_env([os.path.join(self.opts['pki_dir'], 'minions'), os.path.join(self.opts['pki_dir'], 'minions_pre'), ...
Add verification thet the log dir exists
py
diff --git a/panoramix/models.py b/panoramix/models.py index <HASH>..<HASH> 100644 --- a/panoramix/models.py +++ b/panoramix/models.py @@ -594,7 +594,8 @@ class SqlaTable(Model, Queryable, AuditMixinNullable): qry = qry.select_from(from_clause) engine = self.database.get_sqla_engine() - sql =...
Trying to fix a unicode bug with presto
py
diff --git a/holoviews/ipython/display_hooks.py b/holoviews/ipython/display_hooks.py index <HASH>..<HASH> 100644 --- a/holoviews/ipython/display_hooks.py +++ b/holoviews/ipython/display_hooks.py @@ -132,7 +132,7 @@ def HTML_video(plot): raise Exception(msg) -def display_widgets(holomap_format, widget_mode, **k...
Fixed bug in function signature of display_widgets
py
diff --git a/test/test_effect_classes.py b/test/test_effect_classes.py index <HASH>..<HASH> 100644 --- a/test/test_effect_classes.py +++ b/test/test_effect_classes.py @@ -352,3 +352,39 @@ def test_intronic(): variant, transcript_id="ENST00000357654", effect_class=Intronic) + +def test_disrupt...
add tests for missed PrematureStops Called Silent but should be PrematureStop 7 <I> . T TGTA . . . GT 0/1 Called Deletion but should be PrematureStop 7 <I> . TAACAG TATAAC . . . GT 0/1 Called Insertion but should be PrematureStop 7 <I> . TA TATAGGTT . . . GT 0/1
py
diff --git a/indra/assemblers/html/assembler.py b/indra/assemblers/html/assembler.py index <HASH>..<HASH> 100644 --- a/indra/assemblers/html/assembler.py +++ b/indra/assemblers/html/assembler.py @@ -206,6 +206,8 @@ class HtmlAssembler(object): # Clean out invalid fields from the meta agents. ...
Handle another case of None agents.
py
diff --git a/src/scs_core/aws/security/cognito_device_finder.py b/src/scs_core/aws/security/cognito_device_finder.py index <HASH>..<HASH> 100644 --- a/src/scs_core/aws/security/cognito_device_finder.py +++ b/src/scs_core/aws/security/cognito_device_finder.py @@ -14,6 +14,7 @@ from scs_core.sys.http_exception import HTT...
Added password validation for CognitoDeviceIdentity
py
diff --git a/lib/webcomment.py b/lib/webcomment.py index <HASH>..<HASH> 100644 --- a/lib/webcomment.py +++ b/lib/webcomment.py @@ -50,6 +50,7 @@ from invenio.config import CFG_PREFIX, \ from invenio.webmessage_mailutils import \ email_quote_txt, \ email_quoted_txt2html +from invenio.htmlutils import tidy_h...
WebComment: tidy up HTML markup of comments * Tidy up HTML of submitted comment prior to storing it into the database. * Added tidy_html() to htmlutils as generic way to tidy up HTML markup
py
diff --git a/tests/core.py b/tests/core.py index <HASH>..<HASH> 100644 --- a/tests/core.py +++ b/tests/core.py @@ -1356,6 +1356,18 @@ class WebUiTests(unittest.TestCase): response = self.app.get('/health') assert 'The server is healthy!' in response.data.decode('utf-8') + def test_headers(self): ...
[AIRFLOW-<I>] Add some missing endpoint tests WebUiTests lack tests for some endpoints. This commit adds tests for /admin/airflow/headers, /admin/airflow/noaccess and /admin/airflow/pickle_info. Dear Airflow Maintainers, Please accept this PR that addresses the following issues: - <URL>
py
diff --git a/root_numpy/_hist.py b/root_numpy/_hist.py index <HASH>..<HASH> 100644 --- a/root_numpy/_hist.py +++ b/root_numpy/_hist.py @@ -244,7 +244,7 @@ def hist2array(hist, include_overflow=False, copy=True, return_edges=False, retu errors = np.sqrt(np.ndarray(shape=shape, dtype=DTYPE_ROOT2NUMPY['D'...
Update root_numpy/_hist.py
py
diff --git a/cloudaux/__about__.py b/cloudaux/__about__.py index <HASH>..<HASH> 100644 --- a/cloudaux/__about__.py +++ b/cloudaux/__about__.py @@ -13,7 +13,7 @@ __title__ = 'cloudaux' __summary__ = 'Cloud Auxiliary is a python wrapper and orchestration module for interacting with cloud providers' __uri__ = 'https://g...
Bumping version for openstack mock fixes
py
diff --git a/geocoder/google.py b/geocoder/google.py index <HASH>..<HASH> 100755 --- a/geocoder/google.py +++ b/geocoder/google.py @@ -2,8 +2,6 @@ # coding: utf8 from __future__ import absolute_import -import ratelim -import requests import six from geocoder.base import Base from geocoder.keys import google_key,...
Move unused imports into commented section
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -15,7 +15,6 @@ setup( description='User-friendly billing for communal households', long_description=open('README.rst').read() if exists("README.rst") else "", install_requires=[ - 'django>=1.8', ...
Attempt to fix installation error (perhaps similar to <URL>)
py
diff --git a/seleniumbase/fixtures/base_case.py b/seleniumbase/fixtures/base_case.py index <HASH>..<HASH> 100755 --- a/seleniumbase/fixtures/base_case.py +++ b/seleniumbase/fixtures/base_case.py @@ -7017,7 +7017,10 @@ class BaseCase(unittest.TestCase): def __quit_all_drivers(self): if self._reuse_session ...
If the shared session is closed early, share the next session
py
diff --git a/myanimelist/user.py b/myanimelist/user.py index <HASH>..<HASH> 100644 --- a/myanimelist/user.py +++ b/myanimelist/user.py @@ -393,7 +393,7 @@ class User(Base): # collect all reviews over all pages. review_collection = [] while True: - user_reviews = self.session.session.get('http://myan...
User::load_reviews: remove extra str() cast
py
diff --git a/tweepy/streaming.py b/tweepy/streaming.py index <HASH>..<HASH> 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -432,10 +432,10 @@ class Stream(object): self.url = '/%s/statuses/filter.json' % STREAM_VERSION if follow: - self.body['follow'] = u','.join(str(f) for...
Use map for string casts in Stream.filter
py
diff --git a/git/cmd.py b/git/cmd.py index <HASH>..<HASH> 100644 --- a/git/cmd.py +++ b/git/cmd.py @@ -618,7 +618,10 @@ class Git(LazyMixin): try: os.kill(pid, SIGKILL) for child_pid in child_pids: - os.kill(child_pid, SIGKILL) + try: ...
Run os.kill for all child pids even after some of them are down Right now, we come out of the iteration in case of failure while trying to kill a child pid. This may result in some of the child pids staying alive. Change-Id: I<I>d<I>fcefec2bbdae4ae9bf<I>ade<I>b<I>
py
diff --git a/lib/reda/utils/mpl.py b/lib/reda/utils/mpl.py index <HASH>..<HASH> 100644 --- a/lib/reda/utils/mpl.py +++ b/lib/reda/utils/mpl.py @@ -26,8 +26,10 @@ def setup(): mpl.rcParams["font.size"] = 12 mpl.rcParams['mathtext.default'] = 'regular' if latex: + print("Found LaTeX at %s, switching...
Try to fix #<I> again.
py
diff --git a/ssbio/protein/sequence/seqprop.py b/ssbio/protein/sequence/seqprop.py index <HASH>..<HASH> 100644 --- a/ssbio/protein/sequence/seqprop.py +++ b/ssbio/protein/sequence/seqprop.py @@ -388,7 +388,26 @@ class SeqProp(SeqRecord): return Object.__repr__(self) def update(self, newdata, overwrite=F...
Change update method in SeqProp to not inherit from Object class, won't work for Python 2
py
diff --git a/utils/twarc-archive.py b/utils/twarc-archive.py index <HASH>..<HASH> 100755 --- a/utils/twarc-archive.py +++ b/utils/twarc-archive.py @@ -87,7 +87,7 @@ def main(): with open(lockfile, "r") as lockfile_handle: old_pid = lockfile_handle.read() - sys.exit("another twarc-...
expanded message to user about the lockfile when it exists
py
diff --git a/digitalocean/Droplet.py b/digitalocean/Droplet.py index <HASH>..<HASH> 100644 --- a/digitalocean/Droplet.py +++ b/digitalocean/Droplet.py @@ -388,11 +388,9 @@ class Droplet(BaseAPI): if data: self.id = data['droplet']['id'] - - if u"action_ids" in data[u'droplet']: + ...
Add action ids on droplet creation.
py
diff --git a/hererocks.py b/hererocks.py index <HASH>..<HASH> 100755 --- a/hererocks.py +++ b/hererocks.py @@ -1205,10 +1205,10 @@ def main(argv=None): print("Using cl.exe found in PATH.") else: arch = "x64" if platform.machine().endswith("64") else "x86" - ...
vs target: try older VS versions on x<I> host but use x<I> tools
py
diff --git a/angr/exploration_techniques/cacher.py b/angr/exploration_techniques/cacher.py index <HASH>..<HASH> 100644 --- a/angr/exploration_techniques/cacher.py +++ b/angr/exploration_techniques/cacher.py @@ -42,7 +42,8 @@ class Cacher(ExplorationTechnique): with open(self._cache_file) as f: ...
Should not dump if cache already exists
py
diff --git a/openquake/commonlib/logictree.py b/openquake/commonlib/logictree.py index <HASH>..<HASH> 100644 --- a/openquake/commonlib/logictree.py +++ b/openquake/commonlib/logictree.py @@ -1178,7 +1178,8 @@ class SourceModelLogicTree(object): branch.child_branchset = branchset def _get_source_...
Use utf-8 encoding to open source model - avoid charset 0x<I> problem on windows
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ from distutils.core import setup import future NAME = "future" -PACKAGES = ["future"] +PACKAGES = ["future", "future.features", "future.tests"] VERSION = future.__version__ DESCRIPTION = "[experimental] supp...
Add features and tests subpackages to setup.py
py
diff --git a/spyderlib/widgets/editor.py b/spyderlib/widgets/editor.py index <HASH>..<HASH> 100644 --- a/spyderlib/widgets/editor.py +++ b/spyderlib/widgets/editor.py @@ -39,8 +39,8 @@ from spyderlib.widgets.tabs import BaseTabs from spyderlib.widgets.findreplace import FindReplace from spyderlib.widgets.editortools...
widget/editor.py test was broken: added missing attribute definitions
py
diff --git a/nvr/nvr.py b/nvr/nvr.py index <HASH>..<HASH> 100644 --- a/nvr/nvr.py +++ b/nvr/nvr.py @@ -81,6 +81,7 @@ class Neovim(): try: args = os.environ.get('NVR_CMD') args = args.split(' ') if args else ['nvim'] + os.dup2(sys.stdout.filen...
Redirect stdout to stdin when forking This is needed so the new nvim process ignores the data in stdin, because it comes from a TTY now.
py
diff --git a/thellier_gui_dialogs.py b/thellier_gui_dialogs.py index <HASH>..<HASH> 100755 --- a/thellier_gui_dialogs.py +++ b/thellier_gui_dialogs.py @@ -19,7 +19,7 @@ #-------------------------------------------------------------- import matplotlib -matplotlib.use('WXAgg') +#matplotlib.use('WXAgg') import pmag ...
get rid of extra call to matplotlib.use('WXAgg') in thellier_gui_dialogs.py -- harmless, but caused an irritating error message
py
diff --git a/aegea/ssh.py b/aegea/ssh.py index <HASH>..<HASH> 100644 --- a/aegea/ssh.py +++ b/aegea/ssh.py @@ -210,7 +210,7 @@ def prepare_ssh_host_opts(username, hostname, bless_config_filename=None, ssh_ke InstanceId=instance.id, InstanceOSUser=username, SSHPublicKey...
ssh: Avoid using DescribeSubnets to get instance AZ
py
diff --git a/pyvim/key_bindings.py b/pyvim/key_bindings.py index <HASH>..<HASH> 100644 --- a/pyvim/key_bindings.py +++ b/pyvim/key_bindings.py @@ -30,7 +30,7 @@ def create_key_bindings(editor): the ones which are specific for the editor. """ # Create new Key binding manager. - manager = KeyBindingMana...
Renamed enable_system_prompt to enable_system_bindings, because it includes also Control-Z suspension.
py
diff --git a/networkzero/__init__.py b/networkzero/__init__.py index <HASH>..<HASH> 100644 --- a/networkzero/__init__.py +++ b/networkzero/__init__.py @@ -1,3 +1,34 @@ +# -*- coding: utf-8 -*- +"""networkzero - easy network discovery & messaging + +Aimed at a classrom or club situation, networkzero makes it simpler to ...
Put some high-level module docs together, including a simple example
py
diff --git a/openquake/hazardlib/tests/calc/stochastic_test.py b/openquake/hazardlib/tests/calc/stochastic_test.py index <HASH>..<HASH> 100644 --- a/openquake/hazardlib/tests/calc/stochastic_test.py +++ b/openquake/hazardlib/tests/calc/stochastic_test.py @@ -55,11 +55,6 @@ class StochasticEventSetTestCase(unittest.Test...
Removed a broken non-interesting test
py
diff --git a/aioboto3/s3/inject.py b/aioboto3/s3/inject.py index <HASH>..<HASH> 100644 --- a/aioboto3/s3/inject.py +++ b/aioboto3/s3/inject.py @@ -293,7 +293,10 @@ async def upload_fileobj(self, Fileobj: BinaryIO, Bucket: str, Key: str, ExtraAr # So by this point all of the file is read and in a queue # wai...
Wrap coroutine objects in a task prior to calling wait.
py
diff --git a/addok/core.py b/addok/core.py index <HASH>..<HASH> 100644 --- a/addok/core.py +++ b/addok/core.py @@ -479,7 +479,7 @@ class Search(BaseHelper): if self.bucket_dry\ or len(self.meaningful) - 1 > self.should_match_threshold: self.debug('Bucket dry. Trying to remove some toke...
When removing tokens to extend result, remove first token with higher frequency
py
diff --git a/tests/test_async_client.py b/tests/test_async_client.py index <HASH>..<HASH> 100644 --- a/tests/test_async_client.py +++ b/tests/test_async_client.py @@ -62,7 +62,9 @@ async def test_overlapping_contexts(start_dummy, connect_client): async def do_something(): assert client._op...
remove an assertion that strangely doesn't hold; probably because of simulated time
py
diff --git a/vobject/base.py b/vobject/base.py index <HASH>..<HASH> 100644 --- a/vobject/base.py +++ b/vobject/base.py @@ -197,10 +197,12 @@ class VBase(object): behavior = self.behavior if behavior: + print("serializing %s with behavior" % self.name) if DEBUG: ...
what's going on in this serialization?
py
diff --git a/aiogram/types/poll.py b/aiogram/types/poll.py index <HASH>..<HASH> 100644 --- a/aiogram/types/poll.py +++ b/aiogram/types/poll.py @@ -2,7 +2,9 @@ import typing from ..utils import helper from . import base, fields +from .message_entity import MessageEntity from .user import User +from ..utils.text_dec...
i-AIOG-<I>: Add explanation and explanation_entities to the Poll object
py
diff --git a/jira/client.py b/jira/client.py index <HASH>..<HASH> 100644 --- a/jira/client.py +++ b/jira/client.py @@ -725,6 +725,7 @@ class JIRA(object): data['globalId'] = globalId if application is not None: data['application'] = application + data['object'] ...
Fix for instances where destination is NOT an issue but just a normal dict
py
diff --git a/lahja/asyncio/endpoint.py b/lahja/asyncio/endpoint.py index <HASH>..<HASH> 100644 --- a/lahja/asyncio/endpoint.py +++ b/lahja/asyncio/endpoint.py @@ -759,6 +759,8 @@ class AsyncioEndpoint(BaseEndpoint): yield await queue.get() except GeneratorExit: ...
Ensure asyncio Endpoint.stream implementation yields to event loop
py
diff --git a/plenum/__metadata__.py b/plenum/__metadata__.py index <HASH>..<HASH> 100644 --- a/plenum/__metadata__.py +++ b/plenum/__metadata__.py @@ -1,7 +1,7 @@ """ plenum package metadata """ -__version_info__ = (0, 1, 4) +__version_info__ = (0, 1, 5) __version__ = '{}.{}.{}'.format(*__version_info__) __author_...
bumped version to <I>; this version includes a new CLI command
py
diff --git a/example/xmp.py b/example/xmp.py index <HASH>..<HASH> 100644 --- a/example/xmp.py +++ b/example/xmp.py @@ -7,6 +7,8 @@ # See the file COPYING. # +from __future__ import print_function + import os, sys from errno import * from stat import *
Make xmp.py work on Python 2 again.
py
diff --git a/epyc/resultset.py b/epyc/resultset.py index <HASH>..<HASH> 100644 --- a/epyc/resultset.py +++ b/epyc/resultset.py @@ -744,7 +744,7 @@ class ResultSet(object): # shouldn't be more than one either.... raise Exception('Internal data structure failure (job {j})'.format(j=jobid)) ...
Removed "routine" logging messages
py
diff --git a/salt/pillar/libvirt.py b/salt/pillar/libvirt.py index <HASH>..<HASH> 100644 --- a/salt/pillar/libvirt.py +++ b/salt/pillar/libvirt.py @@ -13,7 +13,6 @@ def ext_pillar(pillar, command): ''' key_dir = os.path.join( __opts__['pki_dir'], - 'master', 'libvirt', ...
refine libvirt ext_pillar
py
diff --git a/hendrix/ux.py b/hendrix/ux.py index <HASH>..<HASH> 100644 --- a/hendrix/ux.py +++ b/hendrix/ux.py @@ -13,7 +13,7 @@ import time import traceback from .options import HendrixOptionParser from hendrix.contrib import SettingsError -from hendrix.deploy import base, cache +from hendrix.deploy import base, ca...
resolves issue with launching hx without workers.
py
diff --git a/documentcloud/__init__.py b/documentcloud/__init__.py index <HASH>..<HASH> 100644 --- a/documentcloud/__init__.py +++ b/documentcloud/__init__.py @@ -286,7 +286,11 @@ class ProjectClient(BaseDocumentCloudClient): # ?document_ids[]=28-boumediene&document_ids[]=207-academy&document_ids[]=30-insi...
Throws a DuplicateObjectError when you attempt to create a Project title that already exists.
py
diff --git a/spead2/test/test_recv.py b/spead2/test/test_recv.py index <HASH>..<HASH> 100644 --- a/spead2/test/test_recv.py +++ b/spead2/test/test_recv.py @@ -179,7 +179,7 @@ FLAVOUR = Flavour(48) class TestDecode: """Various types of descriptors must be correctly interpreted to decode data""" - def __init__...
Fix use of __init__ instead of setup in test classes This makes it possible to test with pytest.
py
diff --git a/synapse/tests/test_cortex.py b/synapse/tests/test_cortex.py index <HASH>..<HASH> 100644 --- a/synapse/tests/test_cortex.py +++ b/synapse/tests/test_cortex.py @@ -1340,6 +1340,9 @@ class CortexTest(SynTest): # Prevent the core from storing new types it does not know about self.ra...
Follow up from a comment in #<I>
py
diff --git a/mpop/satin/viirs_sdr.py b/mpop/satin/viirs_sdr.py index <HASH>..<HASH> 100644 --- a/mpop/satin/viirs_sdr.py +++ b/mpop/satin/viirs_sdr.py @@ -163,8 +163,7 @@ class ViirsMbandData(object): def get_lonlat(filename): """Read lon,lat from hdf5 file""" import h5py - - print("File = " + filenam...
Fixing for re-projection.
py
diff --git a/fabrik/ext/envfile.py b/fabrik/ext/envfile.py index <HASH>..<HASH> 100644 --- a/fabrik/ext/envfile.py +++ b/fabrik/ext/envfile.py @@ -6,8 +6,10 @@ fabrik.ext.envfile Contains .env-file helpers """ -from fabric.decorators import task +import os.path + from fabric.state import env +from fabric.decorator...
Updated so envfile uses release path instead of current
py
diff --git a/leancloud/object_.py b/leancloud/object_.py index <HASH>..<HASH> 100644 --- a/leancloud/object_.py +++ b/leancloud/object_.py @@ -369,8 +369,8 @@ class Object(object): self._has_data = has_data def _rebuild_estimated_data_for_key(self, key): - if self.attributes.get(key): - ...
bugfix for increament not valid after save
py
diff --git a/pympi/Elan.py b/pympi/Elan.py index <HASH>..<HASH> 100644 --- a/pympi/Elan.py +++ b/pympi/Elan.py @@ -132,6 +132,8 @@ class Eaf: """ if self.tiers[id_tier][1]: raise ValueError('Tier already contains ref annotations...') + if not isinstance(start, int) or not isinstanc...
check the start and end time for the timestamp in add annotation Closes #<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -83,16 +83,6 @@ def read(f): return (here / f).read_text('utf-8').strip() -NEEDS_PYTEST = {'pytest', 'test'}.intersection(sys.argv) -pytest_runner = ['pytest-runner'] if NEEDS_PYTEST else [] - -tests_require = [ - ...
Drop setup.py test support (#<I>)
py
diff --git a/db_mutex/models.py b/db_mutex/models.py index <HASH>..<HASH> 100644 --- a/db_mutex/models.py +++ b/db_mutex/models.py @@ -3,7 +3,7 @@ from django.db import models class DBMutex(models.Model): """ - Models a mutex lock with a lock ID and a creation time. + Models a mutex lock with a ``lock_id`...
Specified params for mutex model
py
diff --git a/pgmpy/inference/CausalInference.py b/pgmpy/inference/CausalInference.py index <HASH>..<HASH> 100644 --- a/pgmpy/inference/CausalInference.py +++ b/pgmpy/inference/CausalInference.py @@ -7,6 +7,7 @@ from tqdm import tqdm from pgmpy.models.BayesianModel import BayesianModel from pgmpy.estimators.LinearMo...
Fixes for respecting global SHOW_PROGRESS in causal inference
py
diff --git a/pymc3/distributions/discrete.py b/pymc3/distributions/discrete.py index <HASH>..<HASH> 100644 --- a/pymc3/distributions/discrete.py +++ b/pymc3/distributions/discrete.py @@ -482,7 +482,7 @@ class Categorical(Discrete): .. math:: f(x \mid p) = p_x ======== =================================== - ...
Changed docstring to correctly specify the support for Categorical (changed to 0-indexed) (#<I>)
py
diff --git a/altimetry/data/hydro.py b/altimetry/data/hydro.py index <HASH>..<HASH> 100755 --- a/altimetry/data/hydro.py +++ b/altimetry/data/hydro.py @@ -786,7 +786,9 @@ class hydro_data(object): :parameter timerange: rime range to be used. ''' - return self.slice('date',timerange...
RD - added time_slice based on calendar dates
py
diff --git a/pgi/codegen/cffi_backend.py b/pgi/codegen/cffi_backend.py index <HASH>..<HASH> 100644 --- a/pgi/codegen/cffi_backend.py +++ b/pgi/codegen/cffi_backend.py @@ -33,7 +33,7 @@ typedef uint8_t guint8; typedef unsigned int guint; typedef unsigned long gulong; typedef unsigned short gushort; -typedef void* gpo...
cffi_backend: use intptr_t instead of void* everywhere, gets rid of casting
py
diff --git a/graphics/__init__.py b/graphics/__init__.py index <HASH>..<HASH> 100644 --- a/graphics/__init__.py +++ b/graphics/__init__.py @@ -32,6 +32,10 @@ class Canvas(object): self.sprites = [] def __str__( self ): + """ + Returns the screen as a string, taking + the...
Added some docstrings.
py
diff --git a/salt/beacons/diskusage.py b/salt/beacons/diskusage.py index <HASH>..<HASH> 100644 --- a/salt/beacons/diskusage.py +++ b/salt/beacons/diskusage.py @@ -12,9 +12,6 @@ from __future__ import absolute_import import logging import re -# Import Salt libs -import salt.utils - # Import Third Party Libs try: ...
removing unused import to make lint happy
py
diff --git a/jax/lax/lax.py b/jax/lax/lax.py index <HASH>..<HASH> 100644 --- a/jax/lax/lax.py +++ b/jax/lax/lax.py @@ -1404,12 +1404,12 @@ def full(shape: Shape, fill_value: Array, dtype: Optional[DType] = None) -> Arra msg = "full must be called with scalar fill_value, got fill_value.shape {}." raise TypeErr...
Cleanup: reduce redundant code (#<I>)
py
diff --git a/censys/common/base.py b/censys/common/base.py index <HASH>..<HASH> 100644 --- a/censys/common/base.py +++ b/censys/common/base.py @@ -3,7 +3,7 @@ import json import os import warnings from functools import wraps -from typing import Any, Callable, List, Optional, Protocol, Type +from typing import Any, C...
chore: Switch from Protocol to Callable typing
py
diff --git a/mpfr_cython/bigfloat/test/test_mpfr.py b/mpfr_cython/bigfloat/test/test_mpfr.py index <HASH>..<HASH> 100644 --- a/mpfr_cython/bigfloat/test/test_mpfr.py +++ b/mpfr_cython/bigfloat/test/test_mpfr.py @@ -138,6 +138,19 @@ class TestMpfr(unittest.TestCase): with self.assertRaises(OverflowError): ...
Expanded tests for mpfr_get_si with out-of-range values.
py
diff --git a/tests/test_job.py b/tests/test_job.py index <HASH>..<HASH> 100755 --- a/tests/test_job.py +++ b/tests/test_job.py @@ -25,7 +25,9 @@ except ImportError: import splunklib.client as client import splunklib.results as results -from splunklib.binding import _log_duration +from splunklib.binding import _log_...
Add test for invalid search as json
py
diff --git a/services/datalad/datalad_service/tasks/validator.py b/services/datalad/datalad_service/tasks/validator.py index <HASH>..<HASH> 100644 --- a/services/datalad/datalad_service/tasks/validator.py +++ b/services/datalad/datalad_service/tasks/validator.py @@ -25,11 +25,15 @@ def validate_dataset_sync(dataset_pat...
added CalledProcessError handling
py
diff --git a/jsonschema/tests/test_validators.py b/jsonschema/tests/test_validators.py index <HASH>..<HASH> 100644 --- a/jsonschema/tests/test_validators.py +++ b/jsonschema/tests/test_validators.py @@ -1000,6 +1000,35 @@ class TestValidationErrorDetails(TestCase): ), ) + def test_ref(self): ...
Add a test for $ref's validation details.
py
diff --git a/tests/test_parser.py b/tests/test_parser.py index <HASH>..<HASH> 100644 --- a/tests/test_parser.py +++ b/tests/test_parser.py @@ -95,17 +95,14 @@ def test_parse_multiline_string(string_data): assert parse_string(string_data) == expected -@pytest.mark.parametrize('ymlfile', ['list-objects']) +@pyte...
Mark list objects test as xfail
py
diff --git a/salt/modules/cmdmod.py b/salt/modules/cmdmod.py index <HASH>..<HASH> 100644 --- a/salt/modules/cmdmod.py +++ b/salt/modules/cmdmod.py @@ -588,10 +588,17 @@ def _run_all_quiet(cmd, reset_system_locale=True, saltenv='base', pillarenv=None, - ...
Add unused 'output_loglevel' kwarg. This is here for when we alias cmd.run_all directly to _run_all_quiet in certain chicken-and-egg situations where modules need to work both before and after the __salt__ dictionary is populated (cf dracr.py).
py
diff --git a/tests/support/helpers.py b/tests/support/helpers.py index <HASH>..<HASH> 100644 --- a/tests/support/helpers.py +++ b/tests/support/helpers.py @@ -1548,7 +1548,11 @@ def win32_kill_process_tree(pid, sig=signal.SIGTERM, include_parent=True, ''' if pid == os.getpid(): raise RuntimeError("I ...
Do not fail if process already ended We can expect the subprocess has already ended by the time we're checking for child processes. Handle this case gracefully so that tests do not fail with an exception.
py
diff --git a/grimoire_elk/elk/twitter.py b/grimoire_elk/elk/twitter.py index <HASH>..<HASH> 100644 --- a/grimoire_elk/elk/twitter.py +++ b/grimoire_elk/elk/twitter.py @@ -35,7 +35,7 @@ class TwitterEnrich(Enrich): return "created_at" def get_field_unique_id(self): - return "id" + return "i...
[enrich][twitter] Use id_str and the ES object unique identifier for enriched twitter items to avoid integer overrun in JSON conversion as described in <URL>
py
diff --git a/tests/__main__.py b/tests/__main__.py index <HASH>..<HASH> 100644 --- a/tests/__main__.py +++ b/tests/__main__.py @@ -1,11 +1,11 @@ #!/usr/bin/env python import unittest -from tests.tokenizer_test import TokenizerTest -from tests.aggregator_test import AggregatorTest -from tests.converter_test import C...
Fixed import on tests/__main__.py
py
diff --git a/varnish/test_varnish.py b/varnish/test_varnish.py index <HASH>..<HASH> 100644 --- a/varnish/test_varnish.py +++ b/varnish/test_varnish.py @@ -159,7 +159,7 @@ class VarnishCheckTest(AgentCheckTest): @mock.patch('_varnish.geteuid') @mock.patch('_varnish.Varnish._get_version_info') @mock.patch(...
[Varnish] Update test name
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -44,20 +44,21 @@ luigi_package_data = [os.path.join(dirpath.replace("luigi/", ""), ext) for (dirpath, dirnames, filenames) in os.walk("luigi/static") for ext in ["*.html", "*.js", ...
Adjust indentation in setup.py
py
diff --git a/eng/tox/create_package_and_install.py b/eng/tox/create_package_and_install.py index <HASH>..<HASH> 100644 --- a/eng/tox/create_package_and_install.py +++ b/eng/tox/create_package_and_install.py @@ -234,7 +234,7 @@ if __name__ == "__main__": addition_necessary = False ...
create_package_and_install properly handles when a `specifier` is not set for a targeted package within setup.py (#<I>)
py
diff --git a/regions/core/compound.py b/regions/core/compound.py index <HASH>..<HASH> 100644 --- a/regions/core/compound.py +++ b/regions/core/compound.py @@ -3,7 +3,7 @@ import operator as op import numpy as np -from .attributes import CompoundRegionPix, CompoundRegionSky +from .attributes import RegionType from...
Use new RegionType descriptor class in compound regions
py